[Ajuda] Admins
#1

Alguem me ajuda a arruma esse comando ja tentei mas nгo consegui quem poder ajuda eu agradeзo.

Код:
#include a_samp
#include zcmd

command(administradores,playerid, params[])
{
    new AdminList[3000], AdminON = 0, Name[24], i;
	SendAdminText(playerid, "/admins", params);
	do {
	   i++;
	   if ( IsPlayerConnected ( i ) )
           GetPlayerName(i, Name, sizeof(Name));
           if (IsPlayerAdmin(i)) {
              AdminON++;
			  format(AdminList, 3000, "{FFFFFF}%s%s: %s (id: %i), Admin-Level: %i\n", AdminList, AdminLevelName[APlayerData[i][PlayerLevel], Name, i, APlayerData[i][PlayerLevel]); // Add the name of the admin-player to the list
			  continue;
	       }
		   if (APlayerData[i][PlayerLevel] > 1) {
              AdminON++;
			  format(AdminList, 3000, "{FFFFFF}%s%s (%i) й um %s [level %i]\n", AdminList, Name, i, AdminLevelName[APlayerData[i][PlayerLevel]], APlayerData[i][PlayerLevel]); // Add the name of the admin-player to the list
		   }
	   }
	}
	while(i < MAX_PLAYERS);
	if( AdminON > 0)
	{
	   ShowPlayerDialog(playerid, DialogNoResponse, DIALOG_STYLE_MSGBOX, "{FFA500}#{FFFFFF}Administradores disponiveis:", AdminList, "OK", "");
	} else { GameTextForPlayer(playerid, "~r~SEM ADMINISTRADORES~n~~w~ONLINE", 4000, 5); }
	return 1;
}
Reply


Messages In This Thread
Admins - by iMix - 09.01.2014, 05:33
Re: Admins - by PT - 09.01.2014, 10:33
Re: Admins - by Eudes - 09.01.2014, 10:55
Re: Admins - by PT - 09.01.2014, 10:57
Re: Admins - by Eudes - 09.01.2014, 11:03
Re: Admins - by iMix - 09.01.2014, 19:13
Re: Admins - by unamed - 09.01.2014, 19:27
Re: Admins - by iMix - 09.01.2014, 19:29
Re: Admins - by PT - 09.01.2014, 22:17
Re: Admins - by iMix - 09.01.2014, 22:43

Forum Jump:


Users browsing this thread: 3 Guest(s)