yesterday00
|
分享:
▲
▼
#include <amxmod> #include <cstrike>
new g_BonusRange[2] = {1,16000} new Msg[256], kName[32] new g_KillCount = 0
public plugin_init() { register_event("DeathMsg","event_death","a") register_logevent("round_end", 2, "1=Round_End") }
public event_death() { new Killer, Victim, Bonus Killer = read_data(1) Victim = read_data(2) Bonus = random_num(g_BonusRange[0], g_BonusRange[1]) get_user_name(Killer,kName,32) if (Killer && Killer != Victim && get_user_team(Killer) != get_user_team(Victim)) { g_KillCount++ cs_set_user_money(Killer,cs_get_user_money(Killer)+ Bonus) if(g_KillCount == 1) { format(Msg,256,"%s 一马当先,太漂亮了!!! 奖励 $%i",kName,Bonus) set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), 0.01, 0.78, 0, 6.0, 6.0, 0.5, 0.15, -1) } } }
public round_end() { g_KillCount = 0 }
//复制到txt,改后缀为sma,另存为UTF-8
|