SA-MP Forums Archive
[FilterScript] Anti ProAim and SilentAim ! - 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] Anti ProAim and SilentAim ! (/showthread.php?tid=630038)



Anti ProAim and SilentAim ! - Scriptery - 07.03.2017

Hello everyone !

I thought to post a small script for detecting cheaters if use ProAim or SilentAim.

It is a simple but useful script, currently working for detect Renko aim.

Video for demonstration:



Codes:
- V0.1: http://pastebin.com/yvwGvdMh (I do not recommend)
- V0.2: http://pastebin.com/S5s4sWns (bug fixes, to keep the target without press KEY_AIM, anti cheat send fake warnings)


Today I will make a small update.


Thanks for your attention!


Re: Anti ProAim and SilentAim ! - TitanX - 07.03.2017

Nice work but i noticed something

PHP код:
new Float:xxFloat:yyFloat:zz,Float:xx2Float:yy3Float:zz4
is not needed also use static not global variables

PHP код:
static Float:x[2], Float:y[2], Float:z[2
and use for every native a variable like this

PHP код:
GetPlayerPos(hitidx[0], y[0], z[0]) 
etc


Re: Anti ProAim and SilentAim ! - azzerking - 08.03.2017

Quote:
Originally Posted by TitanX
Посмотреть сообщение
Nice work but i noticed something

PHP код:
new Float:xxFloat:yyFloat:zz,Float:xx2Float:yy3Float:zz4
is not needed also use static not global variables

PHP код:
static Float:x[2], Float:y[2], Float:z[2
and use for every native a variable like this

PHP код:
GetPlayerPos(hitidx[0], y[0], z[0]) 
etc
I think you need to learn more about Pawn before making silly comments like this. In this case there is no need to make the variable static since they are only used in that function and the data the variable holds doesn't need to be kept after the function ends.

also did you even bother reading the script properly? If you did you would understand there is nothing wrong with his code.

OT: Not a bad way to do it, could do with some improvements, not tested it but look good.


Re: Anti ProAim and SilentAim ! - SyS - 08.03.2017

Quote:
Originally Posted by TitanX
Посмотреть сообщение
Nice work but i noticed something

PHP код:
new Float:xxFloat:yyFloat:zz,Float:xx2Float:yy3Float:zz4
is not needed also use static not global variables

PHP код:
static Float:x[2], Float:y[2], Float:z[2
and use for every native a variable like this

PHP код:
GetPlayerPos(hitidx[0], y[0], z[0]) 
etc
also arrays are slower than normal variables he don't have huge no of variables. So there is no need for that.


Re: Anti ProAim and SilentAim ! - Scriptery - 08.03.2017

Thanks for feedbacks.


Re: Anti ProAim and SilentAim ! - TitanX - 08.03.2017

Quote:
Originally Posted by azzerking
Посмотреть сообщение
I think you need to learn more about Pawn before making silly comments like this. In this case there is no need to make the variable static since they are only used in that function and the data the variable holds doesn't need to be kept after the function ends.

also did you even bother reading the script properly? If you did you would understand there is nothing wrong with his code.

OT: Not a bad way to do it, could do with some improvements, not tested it but look good.
Quote:
Originally Posted by Sreyas
Посмотреть сообщение
also arrays are slower than normal variables he don't have huge no of variables. So there is no need for that.
didn't knew that, thanks i learn something today


Re: Anti ProAim and SilentAim ! - Scriptery - 08.03.2017

Quote:
Originally Posted by TitanX
Посмотреть сообщение
didn't knew that, thanks i learn something today
Yes, is good idea to use arrays for variables to save place in code, but performance is more important

I made a small bug fix. Please don`t use v0.1 for not send you fake warnings !


Re: Anti ProAim and SilentAim ! - ZukerCup - 08.03.2017

Good Job.


Re: Anti ProAim and SilentAim ! - Scriptery - 08.03.2017

Quote:
Originally Posted by ZukerCup
Посмотреть сообщение
Good Job.
Thanks, but in future i will release new anti cheats.