Raised This Month: $ Target: $400
 0% 

Hitboxes and hudmesage's


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
h4x0rZ-
Junior Member
Join Date: Dec 2005
Location: Latvia, Riga
Old 01-04-2006 , 14:00  
Reply With Quote #9

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 ?
heres my script:
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")    } }
__________________

When you kill 6 people in Unreal Tournament it's "Monster Kill", In Quake3 it's "Excellent", in Counter-Strike it's "Kicked by console"
h4x0rZ- is offline
Send a message via ICQ to h4x0rZ- Send a message via MSN to h4x0rZ-
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode