回复: 求助,爆头奖励源码如何加爆头音乐
#include <amxmodx>#include <cstrike>
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 x = random_num(1500, 1500)
cs_set_user_money(killer,x+cs_get_user_money(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
}
回复: 求助,爆头奖励源码如何加爆头音乐
:byebye: 再次感谢,已经成功……
页:
1
[2]