16.09.2012, 22:07
Код:
CMD:d(playerid, params[]) { new string[128]; if(!IsACop(playerid) && !IsAGov(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an SAPD Oficer/Government Official."); if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/d)epartments radio [text]"); if(AntiAdv(playerid, params)) return 1; format(string, sizeof(string), "**%s", params); foreach(Player, i) { if(IsACop(i) || IsAGov(i)) { SendClientMessage(i, COLOR_DEPTRADIO, string); } } return 1; }