pawn Код:
CMD:limparchat(playerid)
{
if(GetPlayerLevel(playerid) < 4) return SendClientMessage(playerid,0xDEEE20FF,"Admin: Vocк nгo tem Nivel Necessбrio para usar este comando");
for(new i = 0; i <MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
for(new x = 0; x <90; x ++)
{
SendClientMessage(x, -1, " ");
}
}
}
new pt[128], ptname[MAX_PLAYER_NAME];
GetPlayerName(playerid, ptname, MAX_PLAYER_NAME);
format(pt, sizeof(pt), "Chat limpo por %s.", ptname);
SendClientMessageToAll( -1, pt ) ;
return 1;
}