Text to Dialog MsgBox
#1

Anyone know how to change this to DIALOG_STYLE_MSGBOX.
So when player type /admins it will show in dialog box.


PHP код:
dcmd_admins(playerid,params[])
{
    
#pragma unused params
        
new count 0;
        new 
string[128];
        new 
ChangeColor;
          
SendClientMessage(playeridgreen" ");
        
SendClientMessage(playeridgreen"___________ |- Online Admins -| ___________");
        
SendClientMessage(playeridgreen" ");
        for(new 
0MAX_PLAYERSi++)
        {
             if (
IsPlayerConnected(i))
             {
                if(
AccInfo[i][Level] >= && AccInfo[i][Hide] == 0)
                 {
                    if(
AccInfo[i][Level] > 5)
                    {
                        
AdmRank "Professional Admin";
                        
ChangeColor Color_Professional_Admin;
                    }
                     if(
IsPlayerAdmin(i))
                      {
                          
AdmRank "RCON Administrator";
                          
ChangeColor Color_RCON_Administrator;
                      }
                    else
                    {
                         switch(
AccInfo[i][Level])
                        {
                            case 
1: {
                            
AdmRank "Basic Moderator";
                            
ChangeColor Color_Basic_Moderator;
                            }
                            case 
2: {
                            
AdmRank "Moderator";
                            
ChangeColor Color_Moderator;
                            }
                            case 
3: {
                            
AdmRank "Master Moderator";
                            
ChangeColor Color_Master_Moderator;
                            }
                            case 
4: {
                            
AdmRank "Administrator";
                            
ChangeColor Color_Administrator;
                            }
                            case 
5: {
                            
AdmRank "Master Administrator";
                            
ChangeColor Color_Master_Administrator;
                            }
                        }
                    }
                     switch(
AccInfo[i][OnDuty])
                    {
                        case 
0AdmDuty "Playing!";
                        case 
1AdmDuty "On Duty!";
                    }
                    
format(string128"Level: %d - %s (Id:%i) | %s | %s",AccInfo[i][Level], PlayerName2(i),i,AdmRank,AdmDuty);
                    
SendClientMessage(playeridChangeColorstring);
                    
count++;
                }
            }
        }
        if (
count == 0)
        
SendClientMessage(playerid,red,"No admin online in the list");
        
SendClientMessage(playeridgreen" _______________________________________");
        return 
1;

Reply


Messages In This Thread
Text to Dialog MsgBox - by kbalor - 26.06.2012, 15:54
Re: Text to Dialog MsgBox - by Ironboy - 26.06.2012, 16:00
Re: Text to Dialog MsgBox - by Dan_Barocu - 26.06.2012, 16:01
Re: Text to Dialog MsgBox - by kbalor - 26.06.2012, 16:06
Re: Text to Dialog MsgBox - by Dan_Barocu - 26.06.2012, 16:10
Re: Text to Dialog MsgBox - by Ironboy - 26.06.2012, 16:11
Re: Text to Dialog MsgBox - by kbalor - 26.06.2012, 16:18

Forum Jump:


Users browsing this thread: 1 Guest(s)