19.05.2017, 18:49
(
Последний раз редактировалось YouHack; 20.05.2017 в 10:33.
)
PHP код:
new Alive = 0;
public OnPlayerConnect(playerid)
{
Alive++; // if you want to set player as alive when he joins
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_WASTED || PLAYER_STATE_SPECTATING) { Alive++; }
else if(newstate == !(PLAYER_STATE_WASTED || PLAYER_STATE_SPECTATING)) { Alive--; }
return 1;
}
// use Alive variable in textdraw ^^