About GM-Admin Tags

05/26/2013 13:41 raventh1984#1
Hi elitepvpers,

I am having an bit of trouble with the Admin - GM tags

I have 2 players with an admin level but both of them will have an different tag.

Now i have this code however i only see [Tester] Tag

PHP Code:
if(m_dwAuthorization >= AUTH_GAMEMASTER)
            {
                
CString strName;
                
strName szName;
            
                if(
m_dwAuthorization == AUTH_ADMINISTRATOR)
                    if(
m_szName == "test")
                        
strName " [Flyff Owner] " strName;
                                       else if(
m_szName == "test2")
                                                
strName " [Flyff Dev] " strName;
                    else
                        
strName " [Tester] " +strName;
            
                
strcpyszName, (LPCTSTR)strName );
            } 
i also tryd this
if(strName == "test") but also this wont do the trick
05/26/2013 13:51 i33zGames#2
Code:
                CString strName;
                strName = szName;
            
                if( (m_dwAuthorization == AUTH_ADMINISTRATOR) && (m_szName == "test" )) {
                        strName = " [Flyff Owner] " + strName;
                }
                else if((m_dwAuthorization == AUTH_DEVELOPER) &&(m_szName == "test2")) {
                        strName = " [Flyff Dev] " + strName;
                }
                else {
                        strName = " [Tester] " +strName;
                }
            
                strcpy( szName, (LPCTSTR)strName );
05/26/2013 14:17 raventh1984#3
Well this is almost the same.

except you are using AUTH_DEVELOPER

This is not what i want. It needs to be inside the AUTH_ADMIN.

However i tested yours and also it will only show up the [Flyff Owner] Tag when there is no fame selected. However if i select also the Fame then it puts the [Tester] tag in front of it.

So it looks like this [Tester] [Dreadfull fellow] Test
05/26/2013 14:40 .S0ulSeller#4
For beeing shown as Flyff Owner you need AUTH_ADMINISTRATOR and your char has to be called test for beeing shown as Dev you need AUTH_DEVELOPER and your char has to be called test2

if you just want it by Auth make
Code:
                if( (m_dwAuthorization == AUTH_ADMINISTRATOR))
                   {
                        strName = " [Flyff Owner] " + strName;
                    }
                else if((m_dwAuthorization == AUTH_DEVELOPER))     
               {                   
                        strName = " [Flyff Dev] " + strName;
                }
                else {
                        strName = " [Tester] " +strName;
                }
05/26/2013 14:47 raventh1984#5
Still an no go. Guess you dont understand what my goal is?

I want it my way.

So this is my version

PHP Code:
if(m_dwAuthorization >= AUTH_GAMEMASTER)
        {
            
CString strName;
            
strName szName;
            if(
m_dwAuthorization == AUTH_ADMINISTRATOR)
            {
                if(
strName == "test")
                {
                    
strName += " [Pandoraflyff Owner]";
                    
dwColor 0xff2DADAE;
                }
                else if(
strName == "test2")
                {
                    
strName += " [Head-GM]";
                    
dwColor 0xfffbff00;
                }
                else
                {
                    
strName += " [Admin]";
                    
dwColor 0xffAE2D2D;
                }
            }
            else if(
m_dwAuthorization == AUTH_GAMEMASTER3)
            {
                
strName += " [Head-GM]";
                
dwColor 0xfffbff00;
            }
            else if(
m_dwAuthorization == AUTH_GAMEMASTER2)
            {
                
strName += " [GM]";
                
dwColor 0xff2B0CF2;
            }
            else if(
m_dwAuthorization == AUTH_GAMEMASTER)
            {
                if(
strName == "test3")
                {
                    
strName += " [Map Dev]";
                    
dwColor 0xffF2D40C;
                }
                else if(
strName == "test4")
                {
                    
strName += " [Web Dev]";
                    
dwColor 0xffF2D40C;
                }
                else if(
strName == "test5")
                {
                    
strName += " [Forum Moderator]";
                    
dwColor 0xffF2D40C;
                }
                else if(
strName == "test6")
                {
                    
strName += " [Event-GM]";
                    
dwColor 0xffF2D40C;
                }
                else
                {
                    
strName += " [Event-GM]";
                    
dwColor 0xff2B0CF2;
                }
            }
            else if(
m_dwAuthorization == AUTH_OPERATOR)
            {
                
strName +=" [Operator]";
            }
            
strcpyszName, (LPCTSTR)strName );
        } 
Now this is working as it should be. The only problem i encounter with this is when an staff team is selecting an fame title then it wont show the proper TAG.