30.11.2016, 12:56
Код:
CMD:a(playerid, params[]) { new AdminName[MAX_PLAYER_NAME), string[128]; GetPlayerName(playerid, AdminName, sizeof(AdminName)); if(sizeof(params) == 0)) return ""COL_WHITE"Sintaxa corecta este: /"COL_RED"a "COL_WHITE"["COL_RED"message"COL_WHITE"]"); if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, - 1, ""COL_WHITE"Tu nu ai previlegii de "COL_RED" Admin!"); format(string, sizeof(string), ""COL_WHITE"[Admin LV%i]"COL_ORANGE"%s"COL_WHITE": %s", PlayerInfo[playerid][pAdmin], AdminName, params); for(new i; i < 400; i++) { if(IsPlayerConnected(i)) SendClientMessage(i, - 1, string); } }