|
发表于 2007-10-19 22:32:47
|
显示全部楼层
来自 中国–福建–漳州
回复: 求-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);
- new id = killer
- if(id==0) id = victim
- if(is_user_connected(id))
- {
- if(get_user_frags(id)<=-8)
- {
- server_cmd("kick #%d", get_user_userid(id));
- }
- }
- return PLUGIN_CONTINUE
- }
复制代码 |
|