12.06.2013, 03:23
Creio que a switch esta verificando somente a variбvel admin, mesmo sem o user possuir level administrativo! Tente assim:
pawn Код:
CMD:admins(playerid)
{
SendClientMessage(playerid, -1, "{00FF00}[Administradores Online]");
for(new i = 0; i <= MAX_PLAYERS; ++i)
{
if(IsPlayerConnected(i))
{
new Cargo2[128];
switch(status[i][pAdmin] != 0)
{
case 1: Cargo2 = "Beta Tester [1] ";
case 2: Cargo2 = "Tester [2] ";
case 3: Cargo2 = "Moderador [3] ";
case 4: Cargo2 = "Administrador [4] ";
case 5: Cargo2 = "Developer [5] ";
}
new name2[MAX_PLAYER_NAME];
GetPlayerName(i, name2, 32);
new _string[128];
format(_string, 128,"{006000}[%s]{FF0000} %s {00FF00}[ID: %i]",Cargo2, name2, i);
SendClientMessage(playerid, -1, _string);
}
}
return true;
}