06.02.2018, 15:45
OnPlayerDeath
PHP код:
Killed[killerid]++;
if(Killed[killerid] == 1)
{
format(iString, sizeof iString, "+ %d", Killed[killerid]);
TextDrawSetString(EARNS[killerid], iString);
SetTimer("HideTextdraw", 500, false);
}
PHP код:
forward HideTextdraw(playerid);
public HideTextdraw(playerid)
{
TextDrawHideForPlayer(playerid, EARNS[playerid]);
TextDrawHideForPlayer(playerid, KilledBy[playerid]);
}