求“爆头插件”源码?
求爆头插件的源码,谢谢!我的意思是,只有爆头才能杀死人的插件。
回复: 求“爆头插件”源码?
#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)){
new money = get_user_money(killer)
set_hudmessage(150, 50, 255,0.02,0.7)
show_hudmessage(0, "%s BaoTou %sShuai Ge 1Ow? Gei Yu JiangLi 1500$", Killer, Victim)
set_user_money(killer, money + 1500)
}
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
}
页:
[1]