Raised This Month: $ Target: $400
 0% 

Hitboxes and hudmesage's


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
h4x0rZ-
Junior Member
Join Date: Dec 2005
Location: Latvia, Riga
Old 01-03-2006 , 11:20   Hitboxes and hudmesage's
Reply With Quote #1

Hmm... Im thinking about making my own Sound Plugin, because i have some specific thing which i want to chose.
Quote:
Originally Posted by List of help I need
1) How do I get info about how much headshots have player got in streak.
2) Is there available to change for one hudmessage its size and font.
3) Can I get BLACK hudmessage without transparency.
4) How I can get range of what player has been killed.
Sorry for posting all in one... But I don't want to make forum full of my problems. Im new to scripting so first things I will post in one topic... Later when I will have bigger needs I will post every problem in other topic.
__________________

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-
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-03-2006 , 13:50  
Reply With Quote #2

1.

Code:
#include <amxmodx> new headshots[33]; public plugin_init() {     register_plugin("whatever","whatever","whoever");         register_event("DeathMsg","Check_Death","a"); } public Check_Death() {     new attacker = read_data(1),victim = read_data(2), headshot = read_data(3);         if(attacker && headshot)     {         headshots[attacker]++;     }     else if(attacker && !headshot)     {         headshots[attacker] = 0;     }         headshots[victim] = 0;         client_print(attacker,print_chat,"You have %i headshots or something",headshots[attacker]);         return 0; }

2. No

3. No

4.
Code:
#include <amxmodx> new headshots[33]; public plugin_init() {     register_plugin("whatever","whatever","whoever");         register_event("DeathMsg","Check_Death","a"); } public Check_Death() {     new attacker = read_data(1),victim = read_data(2), headshot = read_data(3);         if(attacker && headshot)     {         headshots[attacker]++;     }     else if(attacker && !headshot)     {         headshots[attacker] = 0;     }         new aorigin[3],vorigin[3];     get_user_origin(attacker,aorigin,1);     get_user_origin(victim,vorigin,1);         new dist = get_distance(aorigin,vorigin);         headshots[victim] = 0;         client_print(attacker,print_chat,"You have %i headshots or something. You killed the victim from %i units away.",headshots[attacker],dist);         return 0; }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 01-03-2006 , 15:49  
Reply With Quote #3

I believe that HL units = inches
(Normal player height = 72, 72 inches = 6 feet)
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 01-03-2006 , 15:53  
Reply With Quote #4

Also, you might want to set headshots[id] to 0 upon disconnect/connect.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-03-2006 , 19:03  
Reply With Quote #5

Yeah whatever, wasn't planning on him using it, just an example.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
h4x0rZ-
Junior Member
Join Date: Dec 2005
Location: Latvia, Riga
Old 01-03-2006 , 22:41  
Reply With Quote #6

ok thank you all... Heh... im really new to scripting how i mentioned at 1st post so i dunno how to make those disconnect thing but i will look in other plugins and thanks again
EDIT: But can i get Black Tranparent hudmessage?
__________________

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-
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-03-2006 , 22:58  
Reply With Quote #7

Quote:
Originally Posted by Hawk552
2. No

3. No
Code:
public client_disconnect(id) {     headshots[id] = 0; }

or just this, although I hate when people do it:

Code:
public client_disconnect(id)     headshots[id] = 0;
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
h4x0rZ-
Junior Member
Join Date: Dec 2005
Location: Latvia, Riga
Old 01-04-2006 , 14:00  
Reply With Quote #8

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-
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-04-2006 , 20:55  
Reply With Quote #9

Code:
if(headshots[id] != 2) {      return; }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
h4x0rZ-
Junior Member
Join Date: Dec 2005
Location: Latvia, Riga
Old 01-05-2006 , 00:08  
Reply With Quote #10

Hmmm... i tried to insert it in script but dunno where and how to do that o_0
Code:
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")    } }
Maybe someone of you all could insert this ? ... I need for kills 2, 4, 6.
And that could be all for now...
__________________

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-
Reply


Thread Tools
Display Modes

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