Key detectors other than predefined keys in samp - 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: Key detectors other than predefined keys in samp (
/showthread.php?tid=468812)
Key detectors other than predefined keys in samp -
-=Dar[K]Lord=- - 10.10.2013
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 ...
Re: Key detectors other than predefined keys in samp -
Misiur - 10.10.2013
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.
Re: Key detectors other than predefined keys in samp -
-=Dar[K]Lord=- - 10.10.2013
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 ...?
Re: Key detectors other than predefined keys in samp -
QuaTTrO - 10.10.2013
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.
Re: Key detectors other than predefined keys in samp -
-=Dar[K]Lord=- - 11.10.2013
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?
Re: Key detectors other than predefined keys in samp -
Mauzen - 11.10.2013
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.
Re: Key detectors other than predefined keys in samp -
Pottus - 11.10.2013
Unless support is added to the client we will never see this feature, keep dreaming DarkLord or work within the limits