detecing aim. - 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)
+--- Thread: detecing aim. (
/showthread.php?tid=618867)
detecing aim. -
MerryDeer - 10.10.2016
Hi,
How to detect aim?
Re: detecing aim. -
ChristolisTV - 10.10.2016
Put this on 'OnPlayerKeyStateChange':
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & KEY_HANDBRAKE) && !IsPlayerInAnyVehicle(playerid) && GetPlayerWeapon(playerid) > 0)
{
//Do something
}
return 1;
}
EDIT: Sorry for some edits, I wasn't sure about some things.
Re: detecing aim. -
SickAttack - 10.10.2016
https://github.com/Kevin-Reinke/Play..._detection.pwn
Re: detecing aim. -
MerryDeer - 10.10.2016
Sorry, i was talking about how to detect when player use auto-aim, hacks
Re: detecing aim. -
azzerking - 10.10.2016
There is a include called
"Bustaim". It's as close as your going to get to detecting it, without client sided plugins.
Link here