Raised This Month: $ Target: $400
 0% 

get_user_flags [SOLVED]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 01-18-2014 , 14:38   get_user_flags [SOLVED]
Reply With Quote #1

I don't get it, what I am doing wrong?

PHP Code:
public sayMenu(id) {
    new 
flags get_user_flags(id)
// if admin (admin_ban) open amxmodmenu
    
if(flags ADMIN)
    {
        
client_cmd(id"amxmodmenu")
        return 
PLUGIN_HANDLED
    
}
// if vip (admin_level_a) open vip menu
    
else if(flags VIP)
    {
        
menuVip(id)
    }
// if not admin/vip (user) show error
    
else
    {
        
ColorChat(idGREY"^3[^4SERVER^3] ^1NOT ADMIN/VIP")
    }
    return 
PLUGIN_HANDLED


Last edited by CHE4TER; 01-20-2014 at 05:23. Reason: SOLVED
CHE4TER is offline
 


Thread Tools
Display Modes

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


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