Quote:
Originally Posted by SkullGamer
PHP Code:
CMD:admins(playerid, params[]) {
new
IsAdmin,
IsVip,
LOOL[2000],
AString[2000],
ClaseAdmin[20]
;
for(new i = 0, j = GetMaxPlayers(); i < j; i++) {
if(IsPlayerConnected(i)) {
if(PlayerDados[ i ] [ Vip ]) {
format( gString, sizeof( gString ), "{FFFFFF}%s {00FF00}(VIP)\n", Nome( i ));
strcat( LOOL, String );
IsVip++;
if(PlayerDados[ i ][ Admin ] > 0 ) {
if(PlayerDados[ i ][ Escondido ] == false ) {
if(PlayerDados[ i ][ Admin ] == 1) AdminNivel = "1", ClaseAdmin = "Admin Iniciante";
else if(PlayerDados[ i ][ Admin ] == 2 ) AdminNivel = "2", ClaseAdmin = "Sub Moderador";
else if(PlayerDados[ i ][ Admin ] == 3 ) AdminNivel = "3", ClaseAdmin = "Moderador";
else if(PlayerDados[ i ][ Admin ] == 4 ) AdminNivel = "4", ClaseAdmin = "Administrador";
else if(PlayerDados[ i ][ Admin ] == 5 ) AdminNivel = "5", ClaseAdmin = "Chefe Administracao";
else if(PlayerDados[ i ][ Admin ] == 6 ) AdminNivel = "6", ClaseAdmin = "Chefao";
else if(PlayerDados[ i ][ Admin ] == 7 ) AdminNivel = "7", ClaseAdmin = "Poderoso Chefao";
else if(PlayerDados[ i ][ Trabalhando ] == true) AdminTrabalhando = "Trabalhando";
else if(PlayerDados[ i ][ Trabalhando ] == false) AdminTrabalhando = "Jogando";
format( gStringReserva, sizeof( gStringReserva ), "{FFFFFF}%s | {BEBEBE}Nнvel: {FFFFFF}%s | %s | {BEBEBE}Status: %s\n", Nome( i ), AdminNivel, ClaseAdmin);
strcat( LOOL, gStringReserva );
IsAdmin ++;
}
}
}
Tenta ae
|
tem que retornar a 1(true), no fato o cmd dele ta certo.
pawn Code:
OnPlayerCommandPerformed(playerid, cmdtext[], success){
if(!sucess) return SendClientMessage(playerid, -1, "Esse cmd n existe.");
return 1;
}