Raised This Month: $ Target: $400
 0% 

Check admin flags


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ashwink7
Junior Member
Join Date: Feb 2014
Old 07-27-2014 , 02:14   Check admin flags
Reply With Quote #1

hi this is my code basically what i want is that to get the acces flags via cvar and check whether the user has that flags and execute som codes according to it hers my code

PHP Code:
new flag;
new 
aflags[5];
public 
plugin_init() 
{
             
flag register_cvar("acces_flag","a");
             
register_clcmd("say /lol","check_flags");
}
public 
check_flags(id)
{
                        
get_pcvar_string(flag,aflags,charsmax(aflags));
                        if(
get_user_flags(id) && read_flags(aflags)); 
                           {
                                    
// my code 
                           
}


here i want to check whether user has a ie immunity flag or not but this code is not working please help

Last edited by ashwink7; 07-27-2014 at 02:15.
ashwink7 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 13:12.


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