GetPlayerAnimationIndex help
#2

Hmm, try this:

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;
}
Also search for ' SetTimerEx("CheckHealth" ' and tell me how fast the timer executes..?
Reply


Messages In This Thread
GetPlayerAnimationIndex help - by exclide1 - 05.07.2013, 08:54
Re: GetPlayerAnimationIndex help - by Cjgogo - 05.07.2013, 09:01
Re: GetPlayerAnimationIndex help - by exclide1 - 05.07.2013, 09:07

Forum Jump:


Users browsing this thread: 2 Guest(s)