24.07.2010, 18:50
How i make when player tele in my minigame ,to he can go out only if he die or type /kill
new IsPlayerInMiniGame[MAX_PLAYERS]; OnPlayerSpawn(playerid) { if(IsPlayerInMiniGame[playerid] == 1) { SetPlayerPos(playerid, x,y,z); } } // when player does /kill { IsPlayerInMiniGame[playerid] = 0; } //when a player joins the minigame { IsPlayerInMiniGame[playerid] = 1; }