SA-MP Forums Archive
Other keys? - 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: Other keys? (/showthread.php?tid=624120)



Other keys? - Flashhiee - 11.12.2016

I made this topic to ask if there is any method of using other keys than these, because lets face it, its not good to be limited, and it will be cool to use other keys insead of same old boring standard keys. So, is there any method? Maybe using plugins, or wathever is necessary.


Re: Other keys? - BiosMarcel - 11.12.2016

There is a plugin, but it is pretty limited: https://sampforum.blast.hk/showthread.php?tid=268671

I think i used that a while ago, maybe that helps


Re: Other keys? - Flashhiee - 11.12.2016

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
There is a plugin, but it is pretty limited: https://sampforum.blast.hk/showthread.php?tid=268671

I think i used that a while ago, maybe that helps
Pretty cool, but you cant know who is pressing the key


Re: Other keys? - AbyssMorgan - 11.12.2016

Quote:
Originally Posted by Flashhiee
Посмотреть сообщение
Pretty cool, but you cant know who is pressing the key
This plugin does not work, please see the reason for closing the subject.
Currently, SA: MP doesn't support any key detection than the control keys with GTA.


Re: Other keys? - BiosMarcel - 11.12.2016

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
This plugin does not work, please see the reason for closing the subject.
Currently, SA: MP doesn't support any key detection than the control keys with GTA.
Oh, i used it a while ago and it kinda worked


Re: Other keys? - AbyssMorgan - 11.12.2016

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
Oh, i used it a while ago and it kinda worked
PHP код:
IsKeyDown(vkey); //where is playerid ! 



Re: Other keys? - NaS - 11.12.2016

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
Oh, i used it a while ago and it kinda worked
It works perfectly fine, but you gotta understand that it only detects the keys pressed on the server's machine.

So for a map editor, a singleplayer-gamemode or something like that it's cool, but for a real server it's useless.

OT: Yea, SAMP's keys are limited but you can make a shit-ton of key combos if you do it cleverly. You just have to find a good layout which is easy to remember (always use the same keys as modifier, keys that are usually not a letter, etc.)

Then there's also the possibility of holding a key for 2s instead of just pressing it which noone seems to make use of.