帮忙修改下自动踢出枪枪爆头代码!
僵尸服只想防止枪枪爆头作弊问题,初步设想只要爆头数达到一定数量就自动踢出。请帮忙修改下面代码:#include <amxmod>
public headshot(){
new killer = read_data(1)
new victim = read_data(2)
new Killer
new Victim
get_user_name(killer, Killer,32)
get_user_name(victim, Victim,32)
if(get_user_team(killer) != get_user_team(victim)){
set_hudmessage(150, 50, 255,0.02,0.7)
show_hudmessage(0, "注意:%s 击中 %s 头部", Killer, Victim)
}
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("headshot Rewards","0.0","default")
register_event("DeathMsg","headshot","ade","3=1","5=0")
return PLUGIN_CONTINUE
}
僵尸的HP都大于100!杀敌数不等于爆头数。
页:
[1]