pawn Код:
#define COLOR_ZERO 0xFFFFFFAA
#define verde 0x33AA33AA
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmdtext, "/LimparChat", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
SendClientMessageToAll(COLOR_ZERO, " ");
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s limpou o chat!", pname);
SendClientMessageToAll(verde, string);
}
return 1;
}
return 0;
}