15.06.2015, 20:20
(
Последний раз редактировалось Darkwood17; 20.07.2015 в 06:53.
)
Quote:
Less code! (usefoul)
Код:
CMD:musicall(playerid,params[]) { if(!IsPlayerAdmin(playerid)) return 0; new link[128]; if(sscanf(params, "s[128]", link)) return SendClientMessage(playerid, -1, "Use: /musicall [Link]"); for(new i; i < MAX_PLAYERS; i++) { PlayAudioStreamForPlayer(i, link); } return 1; } |
You just have changed this:
Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Only RCON admins can use this command.");
Код:
if(!IsPlayerAdmin(playerid)) return 0;