刀殺敵修改問題
不能編釋....請問是什麼問題.......#include <amxmodx>
#include <unlimited_money>
#define MONEY 8000
#define MONEY2 2000
public plugin_init() {
register_plugin("Suicide Text","0.2+","huyongbo")
register_event("DeathMsg","knife_kill","a","4&kni")
return PLUGIN_CONTINUE
}
// when someone knived
public knife_kill(){
new killer_id = read_data(1)
new victim_id = read_data(2)
new killer_name, victim_name
get_user_name(killer_id,killer_name,32)
get_user_name(victim_id,victim_name,32)
cs_set_user_money2(killer_id,cs_get_user_money2 + MONEY(killer_id))
cs_set_user_money2(victim_id,cs_get_user_money2 - MONEY2(killer_id))
set_hudmessage(0,255,0,-1.0,0.23,0,6.0,6.0,0.5,0.15, 4)
show_hudmessage(0,"%s 使用刀殺死了 %s /n 得到了死者一部分金錢 /n 合共 %d 元",killer_name,victim_name,MONEY)
//return PLUGIN_HANDLED
}
页:
[1]