复制程式
#include <amxmod>
public headshot(){
new killer = read_data(1)
new victim = read_data(2)
new Killer[33]
new Victim[33]
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 爆头 %s 获得 1500$", 给予 , 奖励)
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
}
我是这样改 可是没有效果...