Anti Health Hack - 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: Anti Health Hack (
/showthread.php?tid=273192)
Re: Anti Health Hack -
LetsOWN[PL] - 31.07.2011
Quote:
Check if player is losing health after the explode.
|
Where it is in your script?
Quote:
Send the message to the administrator if he HP hacks or not.
|
Emm
pawn Код:
format(msg,sizeof(msg),""#COL_ORANGE"[ADMIN] "#COL_LRED"%s was checked for Invulnerability HAX.",PlayerName(targetid));
SendClientMessage(playerid,COLOR_WHITE, msg);
With this code, it will always return the same text
pawn Код:
if(sscanf(params, "uz", targetid))
I guess, that 'z' parameter is not necessary.
Re: Anti Health Hack -
Kingunit - 01.08.2011
Don't think I am noob. I forget the last part of my code =]
pawn Код:
forward Explosion(playerid, adminid);
public Explosion(playerid, adminid) {
if(checkinv == 1)
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health == 100)
{
SendClientMessage(adminid,COLOR_YELLOW,"Invulnerability check result : [POSITIVE]");
checkinv = 0;
}
else if(health != 100)
{
SendClientMessage(adminid,COLOR_YELLOW,"Invulnerability check result : [NEGATIVE]");
checkinv = 0;
}
}
return 1;
}
Happy now?
Re: Anti Health Hack -
Rocketeer - 01.08.2011
Thank you both, and thanks
LetsOWN[PL] it works perfectly

Trololololo