Minigame
#1

How i make when player tele in my minigame ,to he can go out only if he die or type /kill
Reply
#2

Код:
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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)