|
发表于 2008-5-31 15:02:38
|
显示全部楼层
来自 中国–云南–西双版纳傣族自治州–景洪市
回复: 求助,爆头奖励源码如何加爆头音乐
[PHP]#include <amxmodx>
#include <cstrike>
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)
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
}[/PHP] |
|