|
发表于 2007-10-26 18:43:09
|
显示全部楼层
来自 中国–福建–漳州
回复: 求-8 kick插件
- #include <amxmodx>
- #include <amxmisc>
-
- public plugin_init()
- {
- register_plugin("-8 Auto Kick", "1.0", "Rulzy");
- register_event("DeathMsg","eDeathMsg","a");
- }
-
- public eDeathMsg()
- {
- new killer = read_data(1);
- new victim = read_data(2);
- if(is_user_connected(killer))
- {
- if(get_user_frags(killer)-get_user_deaths(killer)<=-8)
- server_cmd("kick #%d", get_user_userid(killer));
- }
- if(is_user_connected(victim))
- {
- if(get_user_frags(victim)-get_user_deaths(victim)<=-8)
- server_cmd("kick #%d", get_user_userid(victim));
- }
- return PLUGIN_CONTINUE
- }
复制代码 |
|