25.07.2015, 10:25
I make some anti cheats which i make but i got some problem in them.
-> Anti Interior Hack
its working fine and detect hacker fast but the problem happen SetPlayerPos set by server auto like when you enter in the car modification shop to mod your car then SetPlayerPos and SetPlayerInterior auto set ,and Anti interior hack detect it as player hacking how i can avoid that .
I also try Anti Health hack with this same idea
Thanks
-> Anti Interior Hack
its working fine and detect hacker fast but the problem happen SetPlayerPos set by server auto like when you enter in the car modification shop to mod your car then SetPlayerPos and SetPlayerInterior auto set ,and Anti interior hack detect it as player hacking how i can avoid that .
Код:
new bool:TeleportInt[MAX_PLAYERS][19] ; I make this stock to detect interior id stock SetPlayerIntEx(playerid, interior) { TeleportInt[playerid][interior] = true; SetPlayerInterior(playerid,interior); } I am resetting all all interior when player join and on player disconnect and using Timer 1sec to detect but how i can avoid car modification interiors new interior = GetPlayerInterior(i); if(TeleportInt[i][interior] == false ) { BanMessages(i, "Interior Hack"); }
Код:
stock SetPlayerHealthEx(playerid, Float:Health) { HealthAllowed[playerid] = true; SetPlayerHealth(playerid, Health); } save under 1 sec Timer new Float:health; GetPlayerHealth(i, health); if (health >= 100 && HealthAllowed[i] == false) { BanMessages(i, "Health Hack"); } I want to ask is it give problem when he die and auto get Health too fast from OnPLayerSPawn fast rather than getting it from SetPlayerHealthEx ?..