24.01.2016, 14:36
Hey guys i created a HealthDecrease system for my Server but i foud a bug. when i revive a player, i want to kill that Timer.. i used
for that using
in OnPlayerDeath. but now i just want that HealthDecrease Timer should end for i person only(whom i will revive).. can you tell me how can i do? thanks
PHP код:
public HealthDecrease(playerid)
{
if(GetPVarInt(playerid,"Injured") == 1)
{
new Float:HP;
GetPlayerHealth(playerid, HP);
SetPlayerHealth(playerid, HP-2);
return 1;
}
return 0;
}
PHP код:
SetTimerEx("HealthDecrease", 15000, 1, "i", playerid);