Key detectors other than predefined keys in samp
#1

As the title specifies that i want to detect a key from player that shows which key it is , inshort it gets its values like if player Presses " T " for chatting it will be a value so that we can detect a player's Key when it is pressed...


Can anyone please help me in this case ...
Reply
#2

You can only get key values from this list, using GetPlayerKeys or some callback like OnPlayerKeyStateChange. You can't fetch other buttons using only samp natives.
Reply
#3

Quote:
Originally Posted by Misiur
Посмотреть сообщение
You can only get key values from this list, using GetPlayerKeys or some callback like OnPlayerKeyStateChange. You can't fetch other buttons using only samp natives.
well is there any option like making a .dll plugin for detecting the pressed keys in samp ...?
Reply
#4

Quote:
Originally Posted by -=Dar[K]Lord=-
Посмотреть сообщение
well is there any option like making a .dll plugin for detecting the pressed keys in samp ...?
That must be done client-side, player will need to download a plugin and install it on his computer.
Reply
#5

Quote:
Originally Posted by QuaTTrO
Посмотреть сообщение
That must be done client-side, player will need to download a plugin and install it on his computer.
but is that possible?
Reply
#6

It is, create some local keylogger that needs to be started and connected to the server. On the server use the socket plugin to establish connections to the clients. Thats quite simple, 100 lines of c for the logger and 20 lines for the server script. Double that if you want a secure connection with some verification so noone can spoof some other player.
The only problem about this is that barely anyone will use it. People prefer just joining a server and being happy.
Reply
#7

Unless support is added to the client we will never see this feature, keep dreaming DarkLord or work within the limits
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)