18.12.2015, 11:52
hi i want clear only players chat not admins
Help = +Rep
Help = +Rep
Код:
COMMAND:clearchat(playerid, params[]) { if(playerData[playerid][playerLoggedIn]) { if(playerData[playerid][playerLevel] >= 3) { for(new i = 0; i < 50; i++) { SendClientMessageToAll(COLOR_WHITE," "); } SendClientMessageToAll(COLOR_WHITE, "{A9C4E4}An administrator has cleared the chat."); new log[250]; format(log, sizeof(log), "%s(%i) cleared the chat", playerData[playerid][tempAdminName], playerid); SendAdminText(playerid, log); } else { return 0; } } else { SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}You must be logged in to use commands."); } return 1; }