Posts: 1,504
Threads: 109
Joined: Jan 2012
So you know how with GameTextForPlayer you can detect what key the player has mapped for SPRINT for example, with the ~k~ symbol (~k~KEY_SPRINT), my question is if there's anyway to detect that with SendClientMessage as well?
Thanks in advance.
Posts: 420
Threads: 6
Joined: Dec 2013
Reputation:
0
No, the ~k~ is part of the game and the chat is built by samp.
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
Interesting. I do remember seeing some people do that, but have never tested it before or thought it wouldn't even work.
Posts: 1,504
Threads: 109
Joined: Jan 2012
Nice, someone should definitely add this to the wiki
Posts: 1,504
Threads: 109
Joined: Jan 2012
Quote:
Originally Posted by CutX
so does it work, did you test?
like i said, it's been forever since i played last so idon't have it installed
but i'd like to know myself now
|
Yes it does.
Quote:
Originally Posted by Threshold
Eg.
PHP код:
SendClientMessage(playerid, -1, "Press ~k~~VEHICLE_HORN~ to annoy the driver in front of you.");
|
^This turns into this: