Quote:
Originally Posted by 'Pawno.
pawn Код:
if(strcmp(cmdtext, "/kill", true) == 0) { new Float:health; GetPlayerHealth(playerid, health); if(health > 0.0) SetPlayerHealth(playerid); else return SendClientMessage(playerid, 0xFFFFFFFF, "** You can't do that because you already type that in!"); return 1; }
|
You shud use Playerstates..PLAYER_STATE_WASTED to accurately check if hes dead or not