04.10.2010, 16:24
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
But GetPlayerHealthEx gives me this error:
Anything?
I know that maybe it won't work.. but I'm just trying out
Thanks
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;
}
Код:
error 017: undefined symbol "GetPlayerHealthEx"
I know that maybe it won't work.. but I'm just trying out
Thanks