Getting ID of nearest player? keybind - 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: Getting ID of nearest player? keybind (
/showthread.php?tid=636108)
Getting ID of nearest player? keybind -
xebbish - 20.06.2017
Guys please help me out! I've been looking everywhere.
I noticed another thread about a keybinder and was wondering if there was a way to get the ID of the nearest player when fast clicking on a keyboard button.
For example, instead of having a keybind that does only "/rape", having one that does "/rape [ID of nearest player]"
I know this is possible but if someone could make this script for me little fast and tell me where/how to put it, it would be so appreciated guys, seriously. I don't know where to put it, will you guys make a AutoHotKey script? If so I guess i'll have to download that program, right?
And I would also like to know if I can do the same with for example /ar [nearest player] too? Maybe I can just change /rape to /ar on the script someone will make, hopefully. Appreciate it guys..
Very thankful for help!