ChinaTown
Posts : 145
Join date : 2016-06-07
Age : 22
Location : Venezuela
| Subject: Suggestion for Staff Wed Dec 14, 2016 2:59 am | |
| Your Name in-game: SuperSaiyan[IA] Suggestion for in-game or forum: Game What kind of suggestion you want give: Hello all admins, i am here for a good suggestion with Cmd, /clearchat (/cc). Everytime when i seen any advertise of his webpage or some other shit, admins do /cc. Which don't clear all chat, so admin have to do it so much time. It just clear 11 lines. And we want that cmd clear ALL CHAT. So i think the cmd it's: - Code:
-
CMD:clearchat(playerid,params[]) { #pragma unused params if(PlayerInfo[playerid][Level] >= 2) { CMDMessageToAdmins(playerid,"CLEARCHAT"); for(new i = 0; i < 11; i++) SendClientMessageToAll(green," "); return 1; } else return SendClientMessage(playerid,red,"ERROR: You need to be level 2 to use this command"); } If we want, that clear all chat it's: - Code:
-
CMD:clearchat(playerid,params[]) { #pragma unused params if(PlayerInfo[playerid][Level] >= 2) { CMDMessageToAdmins(playerid,"CLEARCHAT"); for(new i = 0; i < 99; i++) SendClientMessageToAll(green," "); return 1; } else return SendClientMessage(playerid,red,"ERROR: You need to be level 2 to use this command"); } Just change: for(new i = 0; i < 11; i++) for: for(new i = 0; i < 99; i++) ok? Thanks all and thanks for passing. Regards, ChinaTown. |
|