/Admins - Need Help!
#5

PHP код:
CMD:admins(playerid)
{
    if(
PlayerInfo[playerid][pVip] >= || PlayerInfo[playerid][Level] >= 1)
    {
        
Str[0] = '\0'; new TotalCount 0HonnCaption[52], Status[64], HonnT[24];
        
//----------------------------------------------------------------------
        
foreach(new iPlayer) if(PlayerInfo[i][Level] >= 1)
        {
            if(
IsPlayerAdmin(i))                            HonnT "{00FF00}Yes";
            else if(!
IsPlayerAdmin(i))                      HonnT "{FF0000}No";
            
//------------------------------------------------------------------
            
if(PlayerInfo[i][AFKBRB]       == 1)             Status "{FFFF00}AFK";
            else if(
PlayerInfo[i][Hidden] == 1)             Status "{FF8000}Hidden";
            else                                            
Status "{FFFFFF}Playing";
            
//------------------------------------------------------------------
            
format(Strsizeof(Str), "{00FF00}%s{FFFFFF}(%d)\t{00BBF6}%d\t%s\t%s\n%s"PlayerName(i), iPlayerInfo[i][Level], StatusHonnTStr); TotalCount++;
    }
        
//----------------------------------------------------------------------
        
format(HonnCaption128"{00BBF6}Online Admins - {FF0000}%d"TotalCount);
    
//----------------------------------------------------------------------
        
switch(TotalCount)
        {
            case 
0: return GameTextForPlayer(playerid"~w~~h~No Admins ~r~~h~Online"30004);
            case 
1: return ShowPlayerDialog(playerid123DIALOG_STYLE_LISTHonnCaptionStr"Close""");
            default:
            {
                
format(Strsizeof(str), "Admin Name\tLevel\tStatus\tRCON Access\n%s"Str);
                return 
ShowPlayerDialog(playerid123DIALOG_STYLE_TABLIST_HEADERSHonnCaptionStr"Close""");
            }
        }
    }
    else return 
SendLangInfo(playerid"{FF0000}Vrei sa raportezi un jucator? Foloseste /Report [ID] [Motiv] !""Do you wanna report someone? Use /Report [ID] [Reason] !");

Reply


Messages In This Thread
/Admins - Need Help! - by TheHonnor - 26.06.2016, 10:58
Re: /Admins - Need Help! - by Mencent - 26.06.2016, 11:13
Re: /Admins - Need Help! - by TheHonnor - 26.06.2016, 11:39
Re: /Admins - Need Help! - by TheHonnor - 26.06.2016, 13:49
Re: /Admins - Need Help! - by Sjn - 26.06.2016, 14:02
Re: /Admins - Need Help! - by Mencent - 27.06.2016, 04:59
Re: /Admins - Need Help! - by Sew_Sumi - 27.06.2016, 08:27

Forum Jump:


Users browsing this thread: 1 Guest(s)