SA-MP Forums Archive
[FilterScript] AntiCheat - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] AntiCheat (/showthread.php?tid=624867)



AntiCheat - Micko123 - 24.12.2016

Код:
v1.0 - Anti Speed (ON-FOOT)

v1.1 - Anti AirBreak
v1.1.1 - Fixed problem with timer (Thx to Jelly23 and oMa37)

v1.2.1 - Anti Speed (IN-VEHICLE - still making some improvements) (Thx to NaS for an idea)
       - Anti VehicleRepair Hack
Okay guys I think title says it all..

I hope you'll like this anticheat I will constatly update this thread. Test it with everything you can and post results bellow in comments.

PASTEBIN

IMAGES

Enjoy

NOTE! If you find any bug report them in comments bellow.


Re: AntiCheat - SkyFlare - 24.12.2016

Nice work, can't wait to see more from you to add onto this, I wish you luck with updates.


Re: AntiCheat - Micko123 - 24.12.2016

Thank you m8


Re: AntiCheat - Micko123 - 24.12.2016

UPDATE
Added Anti AirBreak. Tested with CLEO cheat and it is working perfectly.

Pastebin link updated
http://pastebin.com/BbMjhvQz

You can cheange these values
Код:
if(speed > 65 && AirBreak_Speed[i] > 65)
for faster detecting. But I would leave it at 60-65.

EDIT: I am sorry if I spam this thread but I will update this constantly. I hope that is not problem. If yes I won't post updates too often..


Re: AntiCheat - oMa37 - 24.12.2016

Starting the timer OnPlayerSpawn with repeating is a really bad idea, You will be starting the timer multiple times for the same player each time he spawn, I recommend you to move it to OnPlayerConnect.

Anyway, Not bad. Well done.


Re: AntiCheat - Micko123 - 24.12.2016

Quote:
Originally Posted by oMa37
Посмотреть сообщение
Starting the timer OnPlayerSpawn with repeating is a really bad idea, You will be starting the timer multiple times for the same player each time he spawn, I recommend you to move it to OnPlayerConnect.

Anyway, Not bad. Well done.
Fixed thank you so much Didn't think about it Thank you [REP +]


Re: AntiCheat - SkyFlare - 24.12.2016

Quote:
Originally Posted by Micko123
Посмотреть сообщение
UPDATE
I aded Anti AirBreak. Tested with CLEO cheat and it is working perfectly.
Ooooo progress! nice work!


Re: AntiCheat - Micko123 - 24.12.2016

Quote:
Originally Posted by SkyFlare
Посмотреть сообщение
Ooooo progress! nice work!
Yup xD Thx


Re: AntiCheat - Jelly23 - 24.12.2016

PHP код:
new OFTimer[MAX_PLAYERS];
new 
AirBreak_Warn[MAX_PLAYERS];
new 
Float:AirBreak_Pos[MAX_PLAYERS][3];
new 
AirBreak_Speed[MAX_PLAYERS];
new 
AirBreak_Height[MAX_PLAYERS]; 
Could be like this:

PHP код:
new OFTimer[MAX_PLAYERS],
AirBreak_Warn[MAX_PLAYERS],
Float:AirBreak_Pos[MAX_PLAYERS][3],
AirBreak_Speed[MAX_PLAYERS,
AirBreak_Height[MAX_PLAYERS]; 
PHP код:
new string[128]; 
I'm pretty sure it isn't even close to 128 cells.


Re: AntiCheat - Micko123 - 24.12.2016

I've put it 128 because of player name. I always leave 23 cells bigger.
And I will change first thing you said.