21.10.2016, 21:33
why on this server they have KEY_R ? i mean in keys wiki is not over there... how can i create it ?
proof: http://imgur.com/a/sIAbg
proof: http://imgur.com/a/sIAbg
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 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); Say player2 has KEY_FIRE as LeftMouseButton. The message will display to player2 as: ..., press LMB to listen to music. |
would it be the same if I worked with the key Id"numeric" instead of "KEy_X" ?
|
format(string, sizeof(string), "..., press R to listen to music.");