好东西 多谢3楼! 好像還能夠 設定裡面的音效吧 奖励怎么会和塞盟的中文ID严重冲突呢?
你用这个代码应该没有
public plugin_init(){
register_plugin("knifeKill","1.0","A.MI")
register_event("DeathMsg","eDeathMsg","a")
}
public eDeathMsg(){
new weapon, msg
read_data(4,weapon,31)
new killer = read_data(1)
new victim = read_data(2)
if (!killer || killer==victim)
return PLUGIN_CONTINUE
if (get_user_team(killer)==get_user_team(victim))
return PLUGIN_CONTINUE
if(is_user_connected(killer)){
if( containi(weapon,"knife")!=-1 ){
format(msg,127,"你真勇敢,用匕首杀敌,奖励3000金钱")
set_hudmessage(0, 255, 100, 0.01, 0.25, 2, 2.0, 5.0, 0.01, 0.1, 6)
show_hudmessage(killer, msg)
cs_set_user_money(killer,cs_get_user_money(killer)+2700)
set_task(0.5,"chick_user_money",killer);
return PLUGIN_CONTINUE
}
}
页:
1
[2]