|
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("duoKick", "1.0", "A.mi");
register_event("DeathMsg","eDeathMsg","a");
}
public eDeathMsg(id)
{
new killer = read_data(1);
new victim = read_data(2);
if(is_user_connected(killer))
{
if(get_user_frags(killer)-get_user_deaths(killer)>=13){
new pname[32]
get_user_name(killer, pname, 31)
{
if (contain(pname, "[NO-sXe-I]") != -1){
new ipStr[16]
get_user_ip( id, ipStr, 15, 1 )
server_cmd( "kick #%d ^"你没有安装SXE被服务器踢出。^"", id)
}
}
}
}
if(is_user_connected(victim))
{
if(get_user_frags(victim)-get_user_deaths(victim)>=13){
new pname[32]
get_user_name( victim, pname, 31)
{
if (contain(pname, "[NO-sXe-I]") != -1){
new ipStr[16]
get_user_ip( id, ipStr, 15, 1 )
server_cmd( "kick #%d ^"你没有安装SXE被服务器踢出。^"", id)
}
}
}
}
return PLUGIN_CONTINUE
} |
|