Anti Health Hack Problem - 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)
+--- Thread: Anti Health Hack Problem (
/showthread.php?tid=391562)
Anti Health Hack Problem - Patrick - 10.11.2012
I Put It On OnPlayerUpdate
Код:
new
Float:pHealth,
Float:pArmour,
Float:vHealth,
string[128]
;
GetPlayerHealth(playerid, pHealth);
GetPlayerArmour(playerid, pArmour);
if(AdminLevel[playerid] >= 0) //Do not kick a admin
{
return 0;
}
if(pHealth >= 100.1)
{
SendClientMessage(playerid, COLOR_RED,"You Have Been Auto Kick For Using Health Hack");
format(string, sizeof(string), "%s(%d) Has been Auto-Kicked for using Health Hack", GetName(playerid), playerid);
SendClientMessageToAll(COLOR_RED, string);
Kick(playerid);
}
if(pArmour >= 100.1)
{
SendClientMessage(playerid, COLOR_RED,"You Have Been Auto Kick For Using Armour Hack");
format(string, sizeof(string), "%s(%d) Has been Auto-Kicked for using Armour Hack", GetName(playerid), playerid);
SendClientMessageToAll(COLOR_RED, string);
Kick(playerid);
}
if(IsPlayerInAnyVehicle(playerid))
{
GetVehicleHealth(GetPlayerVehicleID(playerid), vHealth);
if(vHealth >= 1000.1)
{
SendClientMessage(playerid, COLOR_RED,"You Have Been Auto Kick For Using Vehicle Health Hack");
format(string, sizeof(string), "%s(%d) Has been Auto-Kicked for using Vehicle Health Hack", GetName(playerid), playerid);
SendClientMessageToAll(COLOR_RED, string);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
Kick(playerid);
}
the bug shows that when player connect in game u can see a person not moving but in there screen they are moving but in my screen not moving. that also happens to my players can anyone help me out pls?
AW: Anti Health Hack Problem - Patrick - 10.11.2012
Anyone??
Re: Anti Health Hack Problem -
[FAT]Klabauter[LST] - 13.11.2012
if(AdminLevel[playerid] >= 0) //Do not kick a admin
should be
if(AdminLevel[playerid] >= 1) //Do not kick a admin
>= 0 is everyone's level
Re: Anti Health Hack Problem -
cessil - 13.11.2012
if you return 0 under OPU then that players updates don't get sent to other players which is why you can't see any admins moving around
Re: Anti Health Hack Problem -
jueix - 13.11.2012
No offence, but I hope you know players can use godmode hack's / health hacks with out making their health go other 100. for example When i use to hack a roleplay server called pr-rp I always made it so i god mode hacked 99 hp.
I found away to encounter healers which hack hp, Basicly you make a variable to save original health each time a player get's hit and shit to save as orginal health and if a player heals non server sided the server will auto kick. Its kind of hard to explain but im in college just now.
Once I am out and if you still have problems i will post my codes.