07.04.2010, 03:31
Or just use a global variable.
Now you can do something like:
At least you don't have to use another timer that way.
Код:
new isDeath[MAX_PLAYERS]; OnPlayerConnect( playerid ) { isDeath[playerid] = false; return 1; } OnPlayerDeath( playerid ) { isDeath[playerid] = true; return 1; } OnPlayerSpawn( playerid ) { isDeath[playerid] = false; return 1; }
Код:
if(isDeath[playerid]) { // He's dead, put code here. } else { // He's not dead. }