23.03.2014, 01:12
tenta assim:
pawn Code:
CMD:admins(playerid, params[])
{
new IsAdmin, IsVip, LOOL[800], AString[800], ClaseAdmin[35];
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(PlayerDados[ i ] [ Vip ])
{
format( AString, sizeof( AString ), "{FFFFFF}%s {00FF00}(VIP)\n", Nome( i ));
strcat( LOOL, AString );
IsVip++;
}
if(PlayerDados[ i ][ Escondido ] == false )
{
switch(PlayerDados[ i ][ Admin ])
{
case 1: ClaseAdmin = "1 | Admin Iniciante";
case 2: ClaseAdmin = "2 | Sub Moderador";
case 3: ClaseAdmin = "3 | Moderador";
case 4: ClaseAdmin = "4 | Administrador";
case 5: ClaseAdmin = "5 | Chefe Administracao";
case 6: ClaseAdmin = "6 | Chefao";
case 7: ClaseAdmin = "7 | Poderoso Chefao";
}
format( AString, sizeof( AString ), "{FFFFFF}%s | {BEBEBE}Nнvel: {FFFFFF}%s | {BEBEBE}Status: %s\n", Nome( i ), ClaseAdmin, PlayerDados[ i ][ Trabalhando ] == true ? ("Trabalhando") : ("Jogando"));
strcat( LOOL, AString );
IsAdmin ++;
}
}
}
format( AString, sizeof( AString ), "\n\n\t\t{0000FF}Admins: {00FF00}%d {FFFFFF}| {0000FF}Vips: {00FF00}%d", IsAdmin, IsVip);
strcat( LOOL, AString );
if( IsAdmin == 0 && IsVip == 0 )
{
format( LOOL, sizeof( LOOL ), "\n\n\t{FFFFFF}Nenhum {00FF00}Administrador {FFFFFF}estб Online no momento.\n\n{FFFFFF}Caso vocк ver alguйm usando cheater\ntire um print/foto e poste em nosso fуrum.\n");
ShowPlayerDialog( playerid, DIALOG_ADMSON, DIALOG_STYLE_MSGBOX, "Admins Online", LOOL, "Fechar", "" );
}
else ShowPlayerDialog( playerid, DIALOG_ADMSON, DIALOG_STYLE_MSGBOX, "Admins Online", LOOL, "Fechar", "" );
return 1;
}