|
发表于 2008-11-11 13:23:20
|
显示全部楼层
来自 中国–广东–惠州
回复: buyzonerange插件怎么使用?或者哪个插件可以把购买区域改为整个地图?
试下.
[php]
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN_NAME "New Plug-In"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "zwfgdlc"
#define CS_MAPZONE_BUY (1<<0)
public plugin_cfg()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_message(get_user_msgid("StatusIcon") , "Message_StatusIcon")
}
public Message_StatusIcon(iMsgId, MSG_DEST, id)
{
static Icon[5]
get_msg_arg_string(2, Icon, 4)
if( equali(Icon,"buy",3) )
{
if( !get_msg_arg_int(1) )
{
set_pdata_int(id,235,get_pdata_int(id, 235)&CS_MAPZONE_BUY)
return PLUGIN_HANDLED
}
}
return PLUGIN_CONTINUE
} [/php]</SPAN></SPAN> |
|