|
发表于 2007-10-2 17:19:07
|
显示全部楼层
来自 中国–重庆–重庆
回复: 求“爆头插件”源码?
#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 BaoTou %s Shuai 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
} |
|