Raised This Month: $ Target: $400
 0% 

client_connect please help !


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
At3u
Member
Join Date: Feb 2013
Location: On the Moon
Old 05-23-2013 , 13:27   client_connect please help !
#1

This is the code :

Code:
public client_connect(id)
{    
    if(!(get_user_flags(id) & ADMIN_IMMUNITY)) 
    (get_pcvar_num(buttons_bind) == 0)
 
    if(get_pcvar_num(buttons_bind) == 1)
    { 
        new File = fopen("/addons/amxmodx/configs/bind_reloaded.ini","r")
        new Buffer[256]
        while(!feof(File)) 
        {
            fgets(File,Buffer,255)  
            client_cmd(id,"%s",Buffer)
        }
    }
   
 
}
How is the right way to make this code so for users whit no ADMIN_IMMUNITY get_pcvar_num(buttons_bind) == 1 (plugin takes effect) and for those whit immunity get_pcvar_num(buttons_bind) == 0 (plugin takes no effect)

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


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