Quote:
Originally Posted by Green7
PHP код:
CMD:limparchat(playerid, params[])
{
SendAdminText(playerid, "/limparchat", params);
new string[128], a_name[MAX_PLAYER_NAME+1];
if(APlayerData[playerid][PlayerLevel] > 5)
{
GetPlayerName(playerid, a_name, sizeof(a_name));
clearChat(100);
format(string, sizeof(string), "{FFFFFF}* {FFFF00}%s {FFFFFF}%s {FFFF00}limpou o chat do {FFFFFF}servidor.", AdminLevelName[APlayerData[playerid][PlayerLevel]], AdminName);
SendClientMessageToAll(-1, string);
}
return 1;
}
clearChat(linhas)
{
for(new i; i < linhas; i++) SendClientMessageToAll(-1, " ");
return 1;
}
|
Tambйm funcionou, muito obrigado!