|
发表于 2008-8-20 00:18:36
|
显示全部楼层
来自 中国–广东–惠州–惠城区
回复: 征集方法: Psychostats3.1的统计问题
AMXX1.81测试正常,只记录有B权限的玩家日志.
[php]
#include <amxmodx>
#define PLUGIN_NAME "Psychostats辅助插件"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "zwfgdlc"
#define PS3_ACCESS ADMIN_RESERVATION //玩家必须有"b"权限才记录日志
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
}
public plugin_log()
{
new log[64],name[32],id;
read_logargv(0,log,63);
if(containi(log,"><")!=-1)
{
parse_loguser(log,name,31);
id=get_user_index(name);
if(get_user_flags(id)&PS3_ACCESS)
return PLUGIN_CONTINUE;
else return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
[/php] |
|