Raised This Month: $51 Target: $400
 12% 

Remove/Disable buyzone in map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BomBaSK
Junior Member
Join Date: Mar 2011
Old 03-05-2011 , 10:00   Remove/Disable buyzone in map
Reply With Quote #1

Hi i just trying to find a plugin who disabling buyzone,i find some plugins but they don't work . Looking plugin For Source Mod
BomBaSK is offline
Aykay
Senior Member
Join Date: Jul 2009
Location: Australia
Old 03-05-2011 , 10:42   Re: Remove/Disable buyzone in map
Reply With Quote #2

http://forums.alliedmods.net/forumdisplay.php?f=60
You'll have better luck over there.
__________________

Aykay is offline
Send a message via MSN to Aykay
kropto
Member
Join Date: Aug 2010
Location: Lithuanian
Old 03-05-2011 , 14:20   Re: Remove/Disable buyzone in map
Reply With Quote #3

Code:
#include <amxmodx>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
 
#define fm_cs_set_user_nobuy(%1)    set_pdata_int(%1, 235, get_pdata_int(%1, 235) & ~(1<<0) )
 
public plugin_cfg()
{
    register_plugin("No Buy", "VERSION", "AUTHOR")
    register_message(get_user_msgid("StatusIcon") , "Message_StatusIcon")
    RegisterHam(Ham_Spawn, "player", "fwdPlayerSpawn", 1);
}
 
public fwdPlayerSpawn(id)
{
    if(is_user_alive(id))
    {
        strip_user_weapons(id);
        //Uncomment below if you want knifes
        give_item(id, "weapon_knife");
    }
}
 
public Message_StatusIcon(iMsgId, MSG_DEST, id)
{
    static szIcon[5]
    get_msg_arg_string(2, szIcon, 4)
    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
}
kropto is offline
Send a message via Skype™ to kropto
Reply



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 19:15.


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