Okay..
Code:
public Death() {
set_hudmessage(0, 100, 155, 0.05, 0.35, 3, 1.0, 4.0, 0.5, 0.05, -1)
new killer = read_data(1)
new victim = read_data(2)
new WeaponName[20]
new WeaponID = get_weaponid(WeaponName)
read_data(4,WeaponName,19)
new vicname[33]
get_user_name(victim,vicname,32)
new killername[33]
get_user_name(killer,killername,32)
if (get_user_team(killer) == get_user_team(victim)) {
client_cmd(0,"play %s", TeamKillerSound)
show_hudmessage(0,"%s killed a team mate!", killername)
iKill[killer] = 0
return PLUGIN_HANDLED
}
if (get_user_team(killer) != get_user_team(victim)) {
if (read_data(3) && FirstBlood == true && WeaponID != CSW_DEAGLE) {
client_cmd(0,"play %s", HeadShotSound)
show_hudmessage(killer,"Headshot!")
}
if (WeaponID == CSW_DEAGLE && read_data(3) && FirstBlood == true) {
client_cmd(0,"play %s", EagleEyeSound)
show_hudmessage(killer,"%s has an Eagle eye!")
}
if (FirstBlood == false) {
client_cmd(0,"play %s", FirstBloodSound)
show_hudmessage(0,"%s drew First Blood!", killername)
FirstBlood = true
}
iKill[killer] += 1
}
if (iKill[killer] == 2) {
client_cmd(killer,"play %s",DoubleKillSound)
show_hudmessage(killer,"Double Kill!")
} else if (iKill[killer] == 3) {
client_cmd(killer,"play %s",TripleKillSound)
show_hudmessage(killer,"Triple Kill!")
} else if (iKill[killer] == 5) {
client_cmd(killer,"play %s",MultiKillSound)
show_hudmessage(killer,"Multi Kill!")
} else if (iKill[killer] == 7) {
client_cmd(0,"play %s",KillingSpreeSound)
show_hudmessage(0,"%s is on a Killing Spree!", killername)
} else if (iKill[killer] == 9) {
client_cmd(killer,"play %s",UltraKillSound)
show_hudmessage(killer,"Ultra Kill!")
} else if (iKill[killer] == 10) {
client_cmd(0,"play %s",MonsterKillSound)
show_hudmessage(0,"M-M-M-MONSTER KILL!!!")
} else if (iKill[killer] == 11) {
client_cmd(0,"play %s",DominatingSound)
show_hudmessage(0,"%s is Dominating!", killername)
} else if (iKill[killer] == 12) {
client_cmd(0,"play %s",GodLikeSound)
show_hudmessage(0,"%s is Godlike!", killername)
} else if (iKill[killer] == 14) {
client_cmd(0,"play %s",RampageSound)
show_hudmessage(0,"%s is on a Rampage!", killername)
} else if (iKill[killer] == 15) {
client_cmd(0,"play %s",WickedSickSound)
show_hudmessage(0,"WHICKED SICK!!!^n%s has killed 15 without dying!", killername)
}
return PLUGIN_HANDLED
}
The messages aint appearing anyway.. And no other HUD messages aint shown at the same time..
By the way, i noticed nightsreem's plugin called "Player wanted", han can he make his own native "getMostKills(team)", and then return the user who have killed most people?