Minigame
#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


Messages In This Thread
Minigame - by Dime - 24.07.2010, 18:50
Re: Minigame - by VictorMartinez - 24.07.2010, 20:01

Forum Jump:


Users browsing this thread: 1 Guest(s)