04.03.2015, 14:09
hello, i dont know how to make dual working cmd.
i want make cmd for admins and for helpers, but i want when use helper this cmd, send message to all:
i dont want:
i want make cmd for admins and for helpers, but i want when use helper this cmd, send message to all:
Код:
format(string, sizeof(string),"[SERVER]: "COL_WHITE"Helper %s is cleared chat.", sendername);
Код:
format(string, sizeof(string),"[SERVER]: "COL_WHITE"Admin %s is cleared chat.", sendername); because ,she not admin. is helper. SORRY FOR MY BAD ENGLISH
Код:
CMD:cc(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_RED, "[GRESKA]: "COL_WHITE"Nemas prava za koristenje ove komande."); else { new string[248], sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); ClearChatboxToAll(playerid,100); format(string, sizeof(string),""COL_WHITE"Admin %s is cleared chat.", sendername); SendClientMessageToAll(COLOR_ORANGE,string); SendClientMessage(playerid, COLOR_RED, "[SERVER]: You are cleaned chat"); } return 1; }