|
楼主 |
发表于 2008-5-31 14:51:55
|
显示全部楼层
来自 中国–广西–百色
回复: 求助,爆头奖励源码如何加爆头音乐
#include <amxmodx>
#include <cstrike>
cs_set_user_money(killer,x+cs_get_user_money(killer))
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 x = random_num(1500, 1500)
set_user_money2(killer,x+get_user_money2(killer))
set_hudmessage(85, 62, 210, 0.03, 0.85, 0, 6.0, 6.0, 0.5, 0.15, 3)
show_hudmessage(0, "%s get %d money from headshot",Killer,x)
client_cmd(0,"spk misc/headshot")
}
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
}
这样修改可以了嘛?我不想要掉钱的功能…… |
|