SA-MP Forums Archive
GetKey, is it possible? - 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: GetKey, is it possible? (/showthread.php?tid=472812)



GetKey, is it possible? - AnonScripter - 30.10.2013

is it possible to know what is the player toggle his game controls ?

example:
pawn Код:
new string[128];
format(string, sizeof(string), "Press %s to pay the ticket", GetKey(KEY_SUBMISSION));
SendClientMessage(playerid, COLOR_WHITE, string);
because i don't want to make the message "Press Number 2 or CapsLock (Default)" because some players doesn't have the default controls.


AW: GetKey, is it possible? - Mellnik - 30.10.2013

Don't think so but for GameTexts and Textdraws you can use for example "~k~~TOGGLE_SUBMISSIONS~"
https://sampwiki.blast.hk/wiki/Keys


Re: GetKey, is it possible? - AnonScripter - 30.10.2013

yes i know it's possible for gametext, thanks for replying :)
but i want to know if it is possible for ClientMessages.


Re: GetKey, is it possible? - RayDcosta - 31.10.2013

people generally always use it for gametext cause thats the standard for key pushes.
unfortunately even i havent tried with sendclientmessage so u will have to experiment with it.
if u get a positive result, do PM me, ill make use of it in the future too