|
发表于 2009-5-19 19:22:48
|
显示全部楼层
来自 中国–湖南–怀化–鹤城区
- #include <amxmodx>
- #include <amxmisc>
- public plugin_init()
- {
- register_plugin("NO-sXe 限制杀人数", "1.1", "Han.Han");
- register_event("DeathMsg","eDeathMsg","a");
- register_cvar("nosxe_kickcount", "20");
- }
- public eDeathMsg()
- {
- new count = get_cvar_num("nosxe_kickcount");
- new killer = read_data(1);
- new victim = read_data(2);
- if(is_user_connected(killer))
- {
- if(get_user_frags(killer)>=count)
- {
- new pname[32]
- get_user_name(killer, pname, 31)
- if (contain(pname, "[NO-sXe-I]") != -1)
- server_cmd( "kick #%d ^"你没开sXe反作弊器,被服务器自动踢出,咨询下载地址:http://www.0745ea.com^"", get_user_userid(killer));
- }
- }
-
- if(is_user_connected(victim))
- {
- if(get_user_frags(victim)>=count)
- {
- new pname[32]
- get_user_name( victim, pname, 31)
- if (contain(pname, "[NO-sXe-I]") != -1)
- server_cmd( "kick #%d ^"你没开sXe反作弊器,被服务器自动踢出,咨询下载地址:http://www.0745ea.com^"", get_user_userid(victim));
- }
- }
- return PLUGIN_CONTINUE
- }
复制代码 |
|