Raised This Month: $ Target: $400
 0% 

problem with get_user_flags


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
manor3x
Junior Member
Join Date: Jan 2012
Old 07-11-2013 , 10:06   problem with get_user_flags
Reply With Quote #1

When someone with admin_level_g and admin_level_h talks in chat it appears god + vip but when someone with just admin_level_g it should appear just god but it still appears god + vip.

this is the respective code

Code:
new const g_szTag[][] = { 
    "", 
    "[Detinator]", 
    "[God + V.I.P.]", 
    "[God]",
    "[Moderator + V.I.P.]",
    "[Moderator]",
    "[Admin + V.I.P.]",
    "[Admin]",
    "[Tester + V.I.P.]",
    "[Tester]",
    "[V.I.P.]"
}
Code:
    new admin = 0, iFlags = get_user_flags(id) 

    if(iFlags & ADMIN_IMMUNITY) 
        admin = 1 
    else if(iFlags & ADMIN_LEVEL_G && ADMIN_LEVEL_H) 
        admin = 2 
    else if(iFlags & ADMIN_LEVEL_G) 
        admin = 3 
    else if(iFlags & ADMIN_LEVEL_A && ADMIN_LEVEL_H)
        admin = 4
    else if(iFlags & ADMIN_LEVEL_A)
        admin = 5
    else if(iFlags & ADMIN_VOTE && ADMIN_LEVEL_H)
        admin = 6
    else if(iFlags & ADMIN_VOTE)
        admin = 7	
    else if(iFlags & ADMIN_KICK && ADMIN_LEVEL_H)
        admin = 8	
    else if(iFlags & ADMIN_KICK)
        admin = 9
    else if(iFlags & ADMIN_RESERVATION && ADMIN_LEVEL_H)
        admin = 10
manor3x is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode