hmm... Now i got something in my script... really big thank to Dizzy for releasing his Ultimate Sound plugin... I got some help of him... so thank you Dizzy... But... now i made that there is counting of headshots e.t.c but how can i make that it is playing sound and showing HeadHunter text only if player got 2 HS in streak and 4 ?
Code:
public hs(){
new hsmode[4]
get_cvar_string("hs_mode",hsmode,4)
new hsmode_bit = read_flags(hsmode)
if (hsmode_bit & 1) {
new killer_id = read_data(1)
new victim_id = read_data(2)
new killer_name[33], victim_name[33]
get_user_name(killer_id,killer_name,33)
get_user_name(victim_id,victim_name,33)
set_hudmessage(0, 0, 0, -1.0, 0.05, 0, 6.0, 6.0, 0.5, 0.15, 1)
show_hudmessage(0,hsmessages[ random_num(0,HSMESSAGES-1) ],killer_name,victim_name)
}
if (hsmode_bit & 2) {
client_cmd(0,"spk misc/headshot")
}
return PLUGIN_CONTINUE
}
public headhunter(){
new hhmode[4]
get_cvar_string("hh_mode",hhmode,4)
new hhmode_bit = read_flags(hhmode)
if (hhmode_bit & 1) {
new killer_id = read_data(1)
new victim_id = read_data(2)
new headshot = read_data(3)
new killer_name[33], victim_name[33]
if(attacker && headshot) {
headshots[attacker]++;
}
else if(attacker && !headshot) {
headshots[attacker] = 0;
}
headshots[victim] = 0;
get_user_name(killer_id,killer_name,33)
set_hudmessage(0, 0, 0, -1.0, 0.05, 0, 6.0, 6.0, 0.5, 0.15, 1)
show_hudmessage(0,headhuntermsg[ random_num(0,HEADHUNTER-1) ],killer_name,headshot,victim_name)
}
if (hhmode_bit & 2) {
client_cmd(0,"spk misc/headhunter")
}
}