KEY lol
#3

Say player1 has bound KEY_FIRE to R (just an example, don't use KEY_FIRE btw):
Код:
new string[144 + 1]; //Adjust size to fit the string, without to much leftover size
if(!IsPlayerInAnyVehicle(playerid)) {
    format(string, sizeof(string), "..., press ~k~~PED_SPRINT~ to listen to music.");
} else {
    format(string, sizeof(string), "..., press ~k~~VEHICLE_ACCELERATE~ to listen to music.");    
}
SendClientMessage(playerid, -1, string);
The message will display to player1 as: ..., press R to listen to music.

Say player2 has KEY_FIRE as LeftMouseButton.
The message will display to player2 as: ..., press LMB to listen to music.
Reply


Messages In This Thread
KEY lol - by StR_MaRy - 21.10.2016, 21:33
Re: KEY lol - by ThatFag - 21.10.2016, 21:37
Re: KEY lol - by Freaksken - 21.10.2016, 21:47
Re: KEY lol - by Eoussama - 21.10.2016, 21:49
Re: KEY lol - by StR_MaRy - 21.10.2016, 21:50
Re: KEY lol - by Freaksken - 21.10.2016, 21:57
Re: KEY lol - by StR_MaRy - 21.10.2016, 22:19
Re: KEY lol - by Spmn - 21.10.2016, 22:23
Re: KEY lol - by Freaksken - 21.10.2016, 23:03
Re: KEY lol - by StR_MaRy - 21.10.2016, 23:10

Forum Jump:


Users browsing this thread: 4 Guest(s)