Problem with Health antihack - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with Health antihack (
/showthread.php?tid=156965)
Problem with Health antihack -
whitedragon - 24.06.2010
pawn Код:
new Float:fHealth;
public Antihack()
{
new x;
new Float:rHealth;
for(x=0;x<MAX_PLAYERS;x++)
{
GetPlayerHealth(x, rHealth);
if(rHealth != GetPVarFloat(x, "faPlayerHealth"))
{
// Player health has changed since the last update -> server, so obviously thats the thing updated.
// Lets do further checks see if he's lost or gained health, anti-health cheat? ;)
if(rHealth > GetPVarFloat(x, "faPlayerHealth"))
{
/* He has gained health! Cheating? Write your own scripts here to figure how a player
gained health! */
}
else
{
/* He has lost health! */
}
SetPVarFloat(x, "faPlayerHealth", rHealth);
}
}
}
Errors are:
\gamemodes\plaster.pwn(8294) : error 017: undefined symbol "GetPVarFloat"
\gamemodes\plaster.pwn(8299) : error 017: undefined symbol "GetPVarFloat"
\gamemodes\plaster.pwn(8309) : error 017: undefined symbol "SetPVarFloat"
why those errors?
Re: Problem with Health antihack -
SiJ - 24.06.2010
Are you sure you use SA-MP 0.3a R6 or newer server package?
Re: Problem with Health antihack -
whitedragon - 24.06.2010
Deam that was the problem i had R4 Pawno
Re: Problem with Health antihack -
ReVo_ - 24.06.2010
update to rc7
Re: Problem with Health antihack -
Kar - 24.06.2010
rc8*