Raised This Month: $ Target: $400
 0% 

Help with a Cvar plz!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 12-22-2009 , 16:52   Re: Help with a Cvar plz!
Reply With Quote #4

after you change the value you have to restart the round...

You have it on round start the only time you actully have the plugin check if its on or off.


Also remove the buy zones dont block buy commands just remove it completely that way they know that they cannot buy
PHP Code:
#define fm_cs_set_user_nobuy(%1)    set_pdata_int(%1, 235, get_pdata_int(%1, 235) & ~(1<<0) )

public plugin_cfg()
{
    
register_message(get_user_msgid("StatusIcon") , "Message_StatusIcon");


public 
Message_StatusIcon(iMsgIdMSG_DESTid)
{
    static 
szIcon[5];
    
get_msg_arg_string(2szIcon4);
    if( 
szIcon[0] == 'b' && szIcon[2] == 'y' && szIcon[3] == 'z' )
    {
        if( 
get_msg_arg_int(1) )
        {
            
fm_cs_set_user_nobuy(id);
            return 
PLUGIN_HANDLED;
        }
    }
    return 
PLUGIN_CONTINUE

Doc-Holiday 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 04:07.


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