21.10.2016, 21:47
Say player1 has bound KEY_FIRE to R (just an example, don't use KEY_FIRE btw):
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.
Код:
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);
Say player2 has KEY_FIRE as LeftMouseButton.
The message will display to player2 as: ..., press LMB to listen to music.