Skip to content

Commit fee1e98

Browse files
committed
Don't allow teleportation to players in a minigame
Fixes #716
1 parent 84623ea commit fee1e98

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pawn/Resources/Minigames/Core/MinigamesHandler.pwn

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ IsPlayerInMinigame(playerId) {
369369
if (PlayerActivity(playerId)->isJavaScriptActivity())
370370
return 1;
371371

372+
if (PlayerSyncedData(playerId)->hasMinigameName())
373+
return 1;
374+
372375
if (IsPlayerStatusMinigame(playerId) && MinigameTypeInfo[Progress] > 1)
373376
return 1;
374377

0 commit comments

Comments
 (0)