SA-MP Forums Archive
Need help detecting health and vehicle health hacks - 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: Need help detecting health and vehicle health hacks (/showthread.php?tid=249578)



Need help detecting health and vehicle health hacks - peterRook - 19.04.2011

making an anti cheat so far i got money hack and weapon hacks sorted and im attempting to do airbreak hack even tho like airbreak hack is hard as fuck to catch anyway i need some directions about the vehicle health and normal health hack


Re: Need help detecting health and vehicle health hacks - DeathOnaStick - 19.04.2011

Quote:
Originally Posted by peterRook
Посмотреть сообщение
making an anti cheat so far i got money hack and weapon hacks sorted and im attempting to do airbreak hack even tho like airbreak hack is hard as fuck to catch anyway i need some directions about the vehicle health and normal health hack
Okay first at all, I did not understand the most of what you've said. Try using "." in your sentences and write in an understandable english. Also you should explain what your exact problem or question is, because we cannot just give you a 'direction'. The idea itself has to come from you.


Re: Need help detecting health and vehicle health hacks - peterRook - 19.04.2011

Well at this point in time my anti cheat includes and is not limited to money hacks and weapon hacks i want to add health hacks and vehicle health hacks, I want to know how to start with coding atleast one of these.

I mean the Player health will do and i will duplicate it for the vehicle health.

P.S Is my grammar better now?((moany git ^^))


Re: Need help detecting health and vehicle health hacks - Joe Staff - 19.04.2011

You shouldn't be complaining about grammar if yours is just as bad. The only health hack you can detect is the one that increases your health. Vehicle health hacks however can be detected by setting all vehicles to have a max health of 999, so if they have 1000 they're hacking.


Re: Need help detecting health and vehicle health hacks - Mean - 19.04.2011

Quote:
Originally Posted by SilentHuntR
Посмотреть сообщение
You shouldn't be complaining about grammar if yours is just as bad. The only health hack you can detect is the one that increases your health. Vehicle health hacks however can be detected by setting all vehicles to have a max health of 999, so if they have 1000 they're hacking.
Well, you should check if they are bugged, it doesn't have to be Vehicle Health Hack.


Re: Need help detecting health and vehicle health hacks - admantis - 19.04.2011

A good way is to set, every player's health to 99 on spawn and other health-filling events. Also vehicles under a loop at OnGameModeInit and OnVehicleSpawn should set their health to 990. If it's higher than it, then it's a hacker (but be aware of sprunk machines and restaurants) most of the times, but they could be bugged / packet loss so it's a important thing to consider aswell.


Re: Need help detecting health and vehicle health hacks - peterRook - 19.04.2011

Well i found a bug with money it sets it all ot zeo and cant take any from the ban cant find out why -.-

define code -
Quote:

#define GivePlayerMoneyEx(%0,%1) SetPVarInt(%0,"Money",GetPlayerMoneyEx(%0)+%1),Giv ePlayerMoney()
#define ResetPlayerMoneyEx(%0) SetPVarInt(%0,"Money",0),ResetPlayerMoney(%0)
#define GetPlayerMoneyEx(%0) GetPVarInt(%0,"Money")

pawn code -
Quote:

public OnPlayerUpdate(playerid)
{
if(GetPlayerMoneyEx(playerid) != GetPlayerMoney(playerid))
{
new const old_money = GetPlayerMoneyEx(playerid);
ResetPlayerMoneyEx(playerid), GivePlayerMoneyEx(playerid, old_money);
}
return 1;
}