Raised This Month: $ Target: $400
 0% 

define two flags?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-04-2011 , 06:28   Re: define two flags?
Reply With Quote #5

Backstabnoob is wrong.

PHP Code:
public plugin_init()
{
    
register_clcmd("amx_command""ClCmd_Command")
}

public 
ClCmd_Command(id)
{
    const 
ADMIN_FULLACCESS ADMIN_IMMUNITY ADMIN_RESERVATION ADMIN_KICK ADMIN_BAN
    
new iFlags get_user_flags(id)
    if( 
iFlags ADMIN_FULLACCESS == ADMIN_FULLACCESS )
    {
        
// first command code
    
}
    else if( 
iFlags ADMIN_RESERVATION )
    {
        
// second command code
    
}
    return 
PLUGIN_HANDLED

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 11:28.


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