[Ajuda] Comando /admins
#1

o meu comando /admins ele so funciona quando algum ADMIN digita . mas quando algum player digita /admins nao aparece nada , vo dexa o codigo abaiixo .

Код:
CMD:admins(playerid,params[])
{
    if(playerinfo[playerid][Admin] < 1) return 1;
	new gString2[500]; new gString[500]; new Nomear[50];
 	for(new i = 0; i < MAX_PLAYERS; i++)
  	{
  		if(playerinfo[i][Admin] >= 1)
   		{
   			if(playerinfo[i][Admin] == 1) Nomear = "Moderador";
    		if(playerinfo[i][Admin] == 2) Nomear = "Moderador Global";
    		if(playerinfo[i][Admin] == 3) Nomear = "Sub-Auxiliar";
    		if(playerinfo[i][Admin] == 4) Nomear = "Auxiliar";
    		if(playerinfo[i][Admin] == 5) Nomear = "MASTER";
    		if(playerinfo[i][Admin] == 6) Nomear = "DONO";
    		if(playerinfo[i][Admin] == 7) Nomear = "Fundador";
     		format(gString,sizeof(gString),"{FF0000}Nick: {FFFFFF}%s {FF0000}ID: {FFFFFF}%d {FF0000}Rank: {FFFFFF}%s\n",Nome(i),i,Nomear);
     		strcat(gString2,gString,sizeof(gString2));
      	}
 }
 	if(playerinfo[playerid][Admin] < 1)
 	{
 		format(gString,sizeof(gString),"{FF0000}Nenhum(a) Administrador(a) Online!");
  		ShowPlayerDialog(playerid,4111,DIALOG_STYLE_MSGBOX,"AC - Administraзгo Online:",gString,"Fechar","");
    }
    ShowPlayerDialog(playerid,4222,DIALOG_STYLE_MSGBOX,"AC - Administraзгo Online:",gString2,"Fechar","");
    return 1;
}
vlw..
Reply
#2

Remova a Linha
PHP код:
if(playerinfo[playerid][Admin] < 1) return 1
Reply
#3

vlw seu emo '-' deu certo ! !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)