Raised This Month: $ Target: $400
 0% 

problem with if


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-16-2011 , 22:37   Re: problem with if
Reply With Quote #4

Try:

PHP Code:
public client_putinserver(id
{
    if(!
get_pcvar_num(pcvar_is_it_on) || !is_user_connected(id) || is_user_bot(id))
    {
        return 
PLUGIN_HANDLED
    
}
    
    if(!
access(idADMIN)) 
    {
        
set_task(1.0"EnableAntiCheat")
        
        
set_task(5.0"input"id)
    }
    return 
PLUGIN_HANDLED

OBS: Change is_it_on to pcvar_is_it_on
__________________
kramesa 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 20:59.


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