#include <amxmodx>
#include <fakemeta>
 
#define PLUGIN "Buyzone block"
#define VERSION "1.0"
#define AUTHOR "unknown"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_message(get_user_msgid("Money"), "MessageMoney");
	register_message(get_user_msgid("HideWeapon"), "MessageHideWeapon");
	register_message(get_user_msgid("StatusIcon"), "Message_StatusIcon");
}

public MessageMoney(msgid, dest, id) {
	set_pdata_int(id, 115, 0);
	set_msg_arg_int(1, ARG_LONG, 0);
}

public MessageHideWeapon(msgid, dest, id) {
	set_msg_arg_int(1, ARG_BYTE, get_msg_arg_int(1) | (1<<5));
}

public Message_StatusIcon(iMsgId, iMsgDest, id) {
	static szIcon[8];
	get_msg_arg_string(2, szIcon, charsmax(szIcon));
	if(equal(szIcon, "buyzone")) {
		if(get_msg_arg_int(1)) {
			set_pdata_int(id, 235, get_pdata_int(id, 235) & ~(1<<0));
			return PLUGIN_HANDLED;
		}
	}
	    public plugin_init() {
        new const blockedmapnames[][] = { "fy_", "awp_" }
        new mapname[32]; get_mapname(mapname, charsmax(mapname));
        for(new i; i < sizeof(blockedmapnames); i++) {
            if(contain(mapname, blockedmapnames[i]) != -1) {
                pause("od");
            }
        }
    }
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1048\\ f0\\ fs16 \n\\ par }
*/
