SA-MP Forums Archive
[+REP] On player press a key - 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: [+REP] On player press a key (/showthread.php?tid=625006)



[+REP] On player press a key - Lirbo - 26.12.2016

There's any way to detect when player is pressing on a key?
I'm not talking about the defined keys such as KEY_SPRINT KEY_CROUCH etc
for example if I want to recognize when somebody is pressing on B


Re: [+REP] On player press a key - GoldenLion - 26.12.2016

I think It's possible with a plugin, have a look here: https://sampforum.blast.hk/showthread.php?tid=268671


Re: [+REP] On player press a key - StrikerZ - 26.12.2016

Edit: I think you got your answer above


Re: [+REP] On player press a key - Lirbo - 26.12.2016

Quote:
Originally Posted by GoldenLion
View Post
I think It's possible with a plugin, have a look here: https://sampforum.blast.hk/showthread.php?tid=268671
tyvm! but this plugin seems to be bugged? he said that in the large red title


Re: [+REP] On player press a key - Vince - 26.12.2016

That is by design. It is impossible to detect specific keys without the use of a client-side plugin. And no-one's interested in downloading extra stuff to be able to play on a server.


Re: [+REP] On player press a key - Lirbo - 26.12.2016

Quote:
Originally Posted by Vince
View Post
That is by design. It is impossible to detect specific keys without the use of a client-side plugin. And no-one's interested in downloading extra stuff to be able to play on a server.
well so do you have any tip for me?
I'm making a MMORPG server and the players would have a lot of attacks and skills...
how will they use them if not with the keys?
and plz don't say with commands cause it'd take a lot of expensive time to write them and also would be lame.


Re: [+REP] On player press a key - BiosMarcel - 26.12.2016

Tell your users to make macros for ability mcommands, or create an own mutliplayer client.
i think that are your options


Re: [+REP] On player press a key - RayBiH - 27.12.2016

Without side clients - no.