05.07.2013, 09:01
Hmm, try this:
Also search for ' SetTimerEx("CheckHealth" ' and tell me how fast the timer executes..?
pawn Код:
forward CheckHealth(playerid);
public CheckHealth(playerid)
{
new Float:fHealth;
GetPlayerHealth(playerid, fHealth);
if(fHealth != GetPVarFloat(playerid, "faPlayerHealth"))
{
if(GetPlayerAnimationIndex(playerid) != 1666 && GetTickCount() < (lastupdate[playerid]+2000) && fHealth > GetPVarFloat(playerid, "faPlayerHealth")) return SendClientMessageToAll(-1, "HACKS");
else
{
//player lost health && GetPlayerInterior(playerid) == 0
}
SetPVarFloat(playerid, "faPlayerHealth", fHealth);
}
return 1;
}