Quote:
Originally Posted by r0ck
Working for me
PHP Code:
#include <amxmodx>
#include <fakemeta>
#define m_iMapZone 235
public plugin_init()
{
register_message(get_user_msgid("StatusIcon") , "Message_StatusIcon")
}
public Message_StatusIcon(iMsgId, MSG_DEST, id)
{
static szIcon[5]; get_msg_arg_string(2, szIcon, charsmax(szIcon))
if(szIcon[0] == 'b' && szIcon[2] == 'y' && szIcon[3] == 'z')
{
if(get_msg_arg_int(1))
{
set_pdata_int(id, m_iMapZone, get_pdata_int(id, m_iMapZone) & ~(1<<0))
return PLUGIN_HANDLED
}
}
return PLUGIN_CONTINUE
}
|
I want to block the buyzone while the player is already in buyzone, that does not help me.
__________________