Quote:
Originally Posted by PT
PHP код:
CMD:limparchat(playerid, params[])
{
if(APlayerData[playerid][PlayerLevel] < 5)
return 1;
new Msg[128], AdminName[MAX_PLAYER_NAME];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
for(new a = 0; a < 100; a++)
SendClientMessageToAll(-1, " ");
format(Msg, sizeof(Msg), "{FFFFFF}* {FFFF00}%s {FFFFFF}%s {FFFF00}limpou o chat do {FFFFFF}servidor.", AdminLevelName[APlayerData[playerid][PlayerLevel]], AdminName);
SendClientMessageToAll(-1, Msg);
SendAdminText(playerid, "/limparchat", params);
return 1;
}
se nao der passa a array AdminLevelName
|
Muito obrigado, deu certo, como eu queria!