10.07.2013, 20:42
Quote:
Sorry but, i know that and I missed code sry, look this is problem
PLAYER_STATE_SPAWNED coz it get player state like he isn't spawned, but he clicked on button "Spawn" |
pawn Код:
new bool:Spawned[MAX_PLAYERS] = false; // a boolean can only be set to "true", or "false".
public OnPlayerConnect(playerid)
{
Spawned[playerid] = false;
return 1;
}
public OnPlayerSpawn(playerid)
{
Spawned[playerid] = true;
return 1;
}
// and under the cmd check if Spawned[playerid] == true, else he isn't spawned so send him an error message.
// NOTE: Do not directly use this snippet, you must edit it to sync with your script, example:
//if he's going to a tutorial, then under OnPlayerSpawn, check if he isn't going to a tutorial, if so, assign it to true, else assign it to false or this will be pointless.