Raised This Month: $ Target: $400
 0% 

How to get user Flags


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-13-2013 , 13:33   Re: How to get user Flags
Reply With Quote #2

Quote:
Originally Posted by Jhob94 View Post
Hi
I am not asking how to get user flags like ADMIN_LEVEL_H but flag "t"
And if possible, get more then one flag at same time, example "bt"
PHP Code:
new szFlags26 ];
GetLetterFlagsid szFlags charsmaxszFlags ) );
server_printszFlags ); 
PHP Code:

GetLetterFlags
id szFlags[] , iMaxLen )
{
    new 
iFlags get_user_flagsid ) , iStartFlag 'a' iIndex;
    
    for ( new 
< ( 'z' 'a' ) ; i++ )
    {
        if ( 
iFlags & ( << ) )
        {
            
szFlagsiIndex++ ] = iStartFlag i;
        }
        
        if ( 
iIndex == iMaxLen )
            break;
    }
    
    return 
iIndex;

__________________

Last edited by Bugsy; 05-13-2013 at 13:34.
Bugsy 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 16:23.


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