04.08.2013, 12:23
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 .
vlw..
Код:
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; }