Spawn command
#3

Like this:
pawn Код:
new bool:pSpawn[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    pSpawn[playerid] = false;
    return 1;
}

public OnPlayerSpawn(playerid)
{
    pSpawn[playerid] = true;
    return 1;
}
And you use this to check if he spawned:
pawn Код:
if(!pSpawn[playerid]) return SendClientMessage(playerid, -1, "ERROR: You must Spawn to use this command.");
Reply


Messages In This Thread
Spawn command - by DerickClark - 31.01.2013, 00:39
Re: Spawn command - by u3ber - 31.01.2013, 00:41
Re: Spawn command - by Roach_ - 31.01.2013, 00:42
Re: Spawn command - by Riddick94 - 31.01.2013, 00:55

Forum Jump:


Users browsing this thread: 2 Guest(s)