Help with anticheat..
#1

Well, i'm trying to make an anticheat based from here: https://sampforum.blast.hk/showthread.php?tid=178543
But i'm trying to make it for health..

Here is what I done
pawn Код:
#define SetPlayerHealthEx(%0,%1) SetPVarInt(%0, "Health", GetPlayerHealthEx(%0)+%1), SetPlayerHealth(%0,%1)
#define GetPlayerHealthEx(%0,%1) GetPVarInt(%0, "Health")

public OnPlayerUpdate(playerid)
{
    if(GetPlayerHealthEx(playerid, HealthA) != GetPlayerHealth(playerid, HealthA))
    {
        new const old_health = GetPlayerHealthEx(playerid, HealthA);
        SetPlayerHealthEx(playerid, old_health);
    }
    return 1;
}
But GetPlayerHealthEx gives me this error:

Код:
error 017: undefined symbol "GetPlayerHealthEx"
Anything?

I know that maybe it won't work.. but I'm just trying out

Thanks
Reply


Messages In This Thread
Help with anticheat.. - by The_Moddler - 04.10.2010, 16:24
Re: Help with anticheat.. - by Mauzen - 04.10.2010, 17:08
Re: Help with anticheat.. - by samgreen - 04.10.2010, 17:18
Re: Help with anticheat.. - by The_Moddler - 04.10.2010, 17:23
Re: Help with anticheat.. - by The_Moddler - 04.10.2010, 22:34
Re: Help with anticheat.. - by Fedee! - 04.10.2010, 22:36

Forum Jump:


Users browsing this thread: 1 Guest(s)