Is there any way to avoid OnPlayerSpawn?
#2

?

pawn Код:
new IgnoreSpawn[MAX_PLAYERS];

AvoidSpawn(playerid)
{
    IgnoreSpawn[playerid] = true;
}

public OnPlayerSpawn()
{
    if(IgnoreSpawn[playerid] == true)
    {
        IgnoreSpawn[playerid] = false;
        return 1;
    }
    /*
    * put all your code here...
    * no worry because it will not
        * be executed if IgnoreSpawn is true
    */

    return 1;
}
Reply


Messages In This Thread
Is there any way to avoid OnPlayerSpawn? - by Guss - 22.05.2015, 22:38
Re: Is there any way to avoid OnPlayerSpawn? - by [KHK]Khalid - 22.05.2015, 23:50
Respuesta: Is there any way to avoid OnPlayerSpawn? - by Juand - 23.05.2015, 00:25

Forum Jump:


Users browsing this thread: 1 Guest(s)