|
发表于 2009-12-29 07:46:39
|
显示全部楼层
来自 中国–广西–百色–田东县
#include <amxmodx>
#include <cstrike>
new msg[128]
new gBonusCount = 0
public plugin_init(){
register_plugin("First Killer Reward","2.0","A.MI")
register_event("DeathMsg","eDeathMsg","a")
register_logevent("newRound", 2, "0=World triggered", "1=Round_Start")
}
public newRound(){
gBonusCount = 0
}
public eDeathMsg(){
new weapon[32]
read_data(4,weapon,31)
new killer = read_data(1)
new victim = read_data(2)
if(!killer || killer==victim)
return PLUGIN_HANDLED
if(get_user_team(killer)==get_user_team(victim))
return PLUGIN_HANDLED
gBonusCount++
new name[32]
get_user_name(killer,name,31)
if( gBonusCount == 1 ){
format(msg,127,"一马当先,奋勇杀敌,奖励 88 元")
set_hudmessage( 0, 255, 100, -1.0, 0.3, 2, 2.0, 5.0, 0.01, 0.1, 1)
show_hudmessage(0,msg)
return PLUGIN_HANDLED
}...........................
...........................
.......................... |
|