13.04.2014, 17:11
Preciso de um /admins que mostre os reprots lidos
O Meu como й
pawn Код:
dcmd_admins(playerid, params[])
{
#pragma unused params
if(Player[playerid][pLogged] == false)
return SendClientMessage(playerid, COR_ERRO, "Vocк nгo estб logado!");
SendClientMessage(playerid, COR_BARRAS, "** Todos os administradores online:");
new AdmLevel[64];
new count=0;
new sztring[50];
for(new i=0; i<MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
if(Player[i][pLogged] == true) {
if(Player[i][pAdministrador] >= 1) {
if(Player[i][pAdministrador] == 5) { AdmLevel = "Game Master"; }
if(Player[i][pAdministrador] == 4) { AdmLevel = "Sub Game Master"; }
if(Player[i][pAdministrador] == 3) { AdmLevel = "Adminstrador Fixo"; }
if(Player[i][pAdministrador] == 2) { AdmLevel = "Level Avaliaзгo"; }
if(Player[i][pAdministrador] == 1) { AdmLevel = "Level Teste"; }
format(sztring, sizeof(sztring), CONTAS, getPName(i));
if(Player[i][pAdministrador] == 1 || Player[i][pAdministrador] == 2 || Player[i][pAdministrador] == 3 || Player[i][pAdministrador] == 4 || Player[i][pAdministrador] == 5) {
SendFormattedMessage(playerid, 0xE3E3E3FF, "Admin %s [%s] [Funзгo: %s]", getPName(i), AdmLevel, DOF2_GetString(sztring, "FunзгoGM"));
} else SendFormattedMessage(playerid, 0xE3E3E3FF, "Admin %s [%s]", getPName(i), AdmLevel);
count++;
}
}
}
}
if(count == 0)
SendClientMessage(playerid, TEXTO, "Nгo tem nenhum admin on-line!");
return 1;
}