GetKey, is it possible?
#1

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.
Reply
#2

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)