Raised This Month: $ Target: $400
 0% 

get_user_flags [SOLVED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 01-19-2014 , 09:57   Re: get_user_flags
Reply With Quote #1

Quote:
Originally Posted by Going Dutch View Post
PHP Code:
public sayMenu(id) { 
    new 
flags get_user_flags(id
// if admin (admin_ban) open amxmodmenu 
    
if(get_user_flags(id) & ADMIN_BAN){
    { 
        
client_cmd(id"amxmodmenu"
        return 
PLUGIN_HANDLED 
    

// if vip (admin_level_a) open vip menu 
    
else if(get_user_flags(id) & ADMIN_LEVEL_A){
    { 
        
menuVip(id
    } 
// if not admin/vip (user) show error 
    
else 
    { 
        
ColorChat(idGREY"^3[^4SERVER^3] ^1NOT ADMIN/VIP"
    } 
    return 
PLUGIN_HANDLED 

Try this
No..
CHE4TER is offline
Reply



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:46.


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