Check spawn
#2

On top of your script:
new spawned[MAX_PLAYERS]; // this will make a slot for each player connected to the server.

OnPlayerSpawn:
spawned[playerid] = true;

Function:
if(spawned[playerid] == 0) return SendClientMessage(playerid,color,"You are not spawned");

OnPlayerDisconnect/Connect:
spawned[playerid] = false;

if you do: new spawned; it'll be just one slot and it won't be for everyone that's why it is mixing up
Reply


Messages In This Thread
Check spawn - by potato - 25.01.2010, 19:43
Re: Check spawn - by KnooL - 25.01.2010, 19:50
Re: Check spawn - by potato - 25.01.2010, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)