Posts: 621
Threads: 174
Joined: Nov 2013
Quote:
Originally Posted by Robo_N1X
That will spam for 100 times to all players.
Btw, try this:
pawn Код:
CMD:cc(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 2) { foreach(Player, i) { for(new e = 0; e < 4; e++) ClearChatbox(i); } new broadcast[128]; format(broadcast, sizeof(broadcast), "AdmCMD: Administrator %s has cleared the chat", GetPlayerNameEx(playerid)); ABroadCast(COLOR_LIGHTRED, broadcast, 1); } return 1; }
I'm sure "ABroadCast" already have loop to all players on it.
|
Excellent bro +rep