27.12.2011, 08:47
(
Последний раз редактировалось Whitetiger; 16.04.2014 в 17:41.
)
Detect Autoaim
This does not and has never detected an external GTA:SA aimbot. this only detects autoaim if you enabled it in the Options->control setup INGAME MENU!
This script detects when a player is using autoaim and not joypad.
pretty simple, made it as an example; maybe someone here can improve my idea.
so here's how its done. GetPlayerTargetPlayer always returns 65535 (INVALID_PLAYER_ID) for players that are using autoaim (and joypad doesn't really matter - this will detect if you shoot your gun and are using AUTOAIM.) I don't know if this was intended or not by SA-MP devs. anyway, when you understand that GetPlayerTargetPlayer always returns 65535 I think its easy from there. don't know really where to post this. I posted my old joypad detection method in the tutorial section but people just cried. move it were-ever if i messed up. the accuracy is pretty damn good if i do say so myself - but i'm posting this so you guys can look at it and maybe improve it, or use it if you want to.
script: http://pastebin.com/gZ15TduQ
EDIT: the indention on pastebin is messed up. it should be okay when you paste it in PAWNO.
EDIT2: A lot of people still seem to be linking this topic and saying it can detect aimbot, so I'll say it again: THIS DOES NOT DETECT ANY AIMBOT AND WAS NEVER INTENDED TO. since 0.3z, if lag comp is enabled, you don't even need to read this, Joypad is already disabled in 0.3z and you don't need to worry about it.