Detect Names with a script for binds - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Other (
https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (
https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Detect Names with a script for binds (
/showthread.php?tid=600348)
AutoHotKey using UDF - Weapon Detection -
dionisak0s - 06.02.2016
So, this is a Auto Hot Key scripts which uses UDF for SAMP.
In the video below you'll see Dexter Salvador's multiple /mes when he aims or swithces a weapon. I figured out how to make the aiming. I am now looking for the weapon detection, the AHK Script detects what weapon the player is using and writes the respective /me for that specific weapon in the chat.
Check the video below and pay attention on Dexter Salvador's purple text. I will remind you, this isn't a server sided system, it's an AHK Script that uses UDF for SAMP.
https://www.youtube.com/watch?v=YmDjKvlkHgo
Re: Detect Names with a script for binds -
Gammix - 06.02.2016
Weapon switch:
https://sampwiki.blast.hk/wiki/GetPlayerWeapon
Aim:
https://sampwiki.blast.hk/wiki/GetPlayerTargetPlayer
Both can be detected under
OnPlayerUpdate, Weapon switch can also be detected under
OnPlayerKeyStateChange.
Re: Detect Names with a script for binds -
dionisak0s - 08.02.2016
This isn't a SAMP Script, it's nothing related to SAMP Scripting. I am talking about a modification, I would like to create one. So a client may get the name of someone by aiming at him or detect the weapon that he switched to.
Re: Detect Names with a script for binds -
dionisak0s - 20.02.2016
Bump, edited the post and added a video to be more specific.
Re: Detect Names with a script for binds -
Write - 20.02.2016
Can be easily done with cleo.
Re: Detect Names with a script for binds -
dionisak0s - 21.02.2016
Just found it from a community member of NGG.