19.05.2015, 10:15
Код:
CCMD:ask(playerid, params[]) { new msg[100]; new string[200]; if(sscanf(params, "us[100]", msg))return SendClientMessage(playerid, COLOR_GREY, "{6a696a}[cmd]: /ask {9c9a9c}<questions>"); format(string, sizeof(string), "{C4BC34}[ASK] {EDE679}%s(%d): %s", GetName(playerid), playerid, msg); SendAdminMessage(COLOR_SERVER, string); SendClientMessage(playerid, COLOR_SERVER, "{C4BC34}Your question has been sent to all online administrators."); return 1; }
Код:
CMD:a(playerid, params[]) { new msg[100]; new string[200]; if(pInfo[playerid][Adminlevel] < 1) return SendClientMessage(playerid, COLOR_RED, "{ff6347}Error: You are not allowed to use this command!"); if(sscanf(params, "us[100]", msg))return SendClientMessage(playerid, COLOR_GREY, "{6a696a}[cmd]: /a {9c9a9c}[message]"); format(string, sizeof string, "{FF0000}[Admin Chat] {FF6347}%s: %s", GetName(playerid), msg); SendAdminMessage(COLOR_RED, string); return 1; }