13.10.2018, 20:43
Quote:
|
Just add a check to see if player is alive or dead. If is dead, execute your code.
|
Код:
public DeathTimer(playerid)
{
new Float:healtht;
GetPlayerHealthEx(playerid, healtht);
if(healtht <= 0)
{
GivePlayerCash(playerid, -5);
SendClientMessage(playerid, COLOR_ORANGE, "Paramedics saved you for 5 dollars.");
KillTimer(deatht[playerid]);
}
return 1;
}


