What i need is that buy zone would be deleted (or any other method to prevent from opening buy menu) and hide/delete money.
How could this code be upgraded or it's fine?
PHP Code:
#include <amxmodx>
#include <fakemeta>
#define PLUGIN_NAME "No buyzone & money"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "Not me"
#define OFFSET_CSMONEY 115
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_clcmd("buy", "menu_block")
register_clcmd("buyequip", "menu_block")
register_message(get_user_msgid("Money"), "MessageMoney")
}
public menu_block(id)
{
return PLUGIN_HANDLED
}
public MessageMoney(id)
{
set_pdata_int(id, OFFSET_CSMONEY, 0);
set_msg_arg_int(1, ARG_LONG, 0);
}