25.01.2010, 19:43
Is there a better way to check if player is spawned?
Currently I have spawned=true; inside OnPlayerSpawn, but there is a problem with it...
not always it seem to go back from false (inside OnPlayerDeath) and that causes problems :/
I do recall some function like GetPlayerPos that returns false if player isn't spawned (if(GetPlayerPos(playerid, x, y, z))...), but I could be wrong and mixing up 2 games.
Currently I have spawned=true; inside OnPlayerSpawn, but there is a problem with it...
not always it seem to go back from false (inside OnPlayerDeath) and that causes problems :/
I do recall some function like GetPlayerPos that returns false if player isn't spawned (if(GetPlayerPos(playerid, x, y, z))...), but I could be wrong and mixing up 2 games.