13.10.2018, 19:36
Help.
Problem: When player is spawning then he is connecting on the server,the player give the message "Paramedics saved you for 5 dollars."
Problem: When player is spawning then he is connecting on the server,the player give the message "Paramedics saved you for 5 dollars."
Код:
public OnPlayerDeath(playerid, killerid, reason) { deatht[playerid] = SetTimerEx("DeathTimer", 1500, 0, "i", playerid);
Код:
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; }