08.02.2011, 17:28
pawn Код:
stock IsPlayerDead(playerid)
{
new Float:health;
GetPlayerHealth(playerid, health);
if(GetPlayerHealth(playerid, health) <= 0) return 1;
else return 0;
}
pawn Код:
CMD:deathcheck(playerid, params[])
{
if(IsPlayerDead(playerid))
SendClientMessage(playerid, YELLOW, "You're dead");
else
SendClientMessage(playerid, YELLOW, "You are alive");
return 1;
}