Detect Names with a script for binds
#1

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
Reply
#2

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.
Reply
#3

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.
Reply
#4

Bump, edited the post and added a video to be more specific.
Reply
#5

Can be easily done with cleo.
Reply
#6

Just found it from a community member of NGG.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)