13.01.2017, 18:34
Код:
CMD:a(playerid,params[]) { new adminstring[128]; if(adminstatus[playerid] == 1) return SendClientMessage(playerid, COR_BORDO, "Vocк nгo estб em modo admin, use /trabalhar."); if(pInfo[playerid][pAdmin] >= 1) { if(!strlen(params)) { SendClientMessage(playerid, -1, ""chat" /a [message]"); return 1; } format(adminstring, sizeof(adminstring), ""COR_BORDO"[Admin Chat] %s[%d]: %s",PlayerName(playerid), playerid, params); SendMessageToAllAdmins(adminstring, -1); } else { SendClientMessage(playerid,-1,"*"COR_BORDO" You do not have the right admin permissions for this command!"); } return 1; }
Код:
stock SendMessageToAllAdmins(message[], color) { foreach(Player, i) { if(pInfo[i][pAdmin] >= 1 || IsPlayerAdmin(i)) { SendClientMessage(i, color, message); } } return 1; }