30.12.2011, 19:53
Quote:
Emh...i've a unique code for Health and Armour spawn,unique timer,i don't need to separate in 2 timers,2 publics and 2 forwards.I just need to run the timer ONLY when the player HP or Armour is more than 99.
|
something like
PHP код:
forward HealthArmourverification(playerid)
SetTimer("HealthArmourverification", 5000, true);
public HealthArmourverification(playerid)
{
new Float:checkarmour;
if(GetPlayerArmour(playerid,checkarmour))
{
if (checkarmour > 99)
{
//your anticheat timer
}
return 1;
}
else if(GetPlayerHealth(playerid,checkarmour))
{
new Float:checkhealth;
if (checkhealth > 99)
{
//your anticheat timer
}
return 1;
}
return 1;
}