[script] MeleeHudText Hook

YEA
✔️ HL Verified
Joined
Oct 31, 2014
Messages
201
Best answers
0
Location
CHINA
PHP:
#include <amxmodx>

public plugin_init()
{
	register_plugin("MeleeHudText Hook", "1.0", "ESFKAMI")
	register_clcmd("test", "TestMeleeHud")
	register_message(get_user_msgid("MeleeTxtHud"), "MeleeText")
}

public TestMeleeHud(id)//Test
{
	for(new i = 0; i <= 17; i++)
	{
	message_begin( MSG_ALL, get_user_msgid("MeleeTxtHud") );

	/*
	MeleeHud Type List:
	1 = Hit 
	2 = Combo 
	3 = Damage 
	4 = Sword Kill 
	10 = Dodged 
	11 = Block Breaker 
	12 = You Win 
	13 = You Lose 
	14 = Tie 
	15 = Hand on 
	16 = Power Hit 
	17 = Prepunch
	*/
	write_byte( i );

	//If the MeleeHud type is 1(Hit) or 3(Damage), then set how many value here,otherwise just write 0. In this case, 13Hit!
	write_byte( 13 ); 

	message_end()
	}
}

public MeleeText(megid, param, player)//Hook
{
	if(get_msg_arg_int(1) == 1) //Hit
	{
		//...
	}

	if(get_msg_arg_int(1) == 2) //Combo
	{
		//...
	}

	if(get_msg_arg_int(1) == 3) //Damage
	{
		//...
	}

	if(get_msg_arg_int(1) == 4) //Sword Kill
	{
		//...
	}

	if(get_msg_arg_int(1) == 10) //Dodged
	{
		//...
	}

	if(get_msg_arg_int(1) == 11) //Block Breaker
	{
		//...
	}

	if(get_msg_arg_int(1) == 12) //You Win
	{
		//...
	}

	if(get_msg_arg_int(1) == 13) //You Lose
	{
		//...
	}

	if(get_msg_arg_int(1) == 14) //Tie
	{
		//...
	}

	if(get_msg_arg_int(1) == 15) //Hand on
	{
		//...
	}

	if(get_msg_arg_int(1) == 16)//Power Hit
	{
		//...
	}

	if(get_msg_arg_int(1) == 17)//Prepunch
	{
		//...
	}
}
 
Last edited:
Member
✔️ HL Verified
🚂 Steam Linked
Discord Member
Joined
Nov 25, 2015
Messages
94
Best answers
0
Location
Norway
How do you install it??
 

ewl

SSB Member
✔️ HL Verified
🌟 Senior Member
Joined
Dec 31, 2011
Messages
42
Best answers
0
How do you install it??
1. Go to amxmodx.org and downlaod amxmodx 1.8.2 base windows:

AmxModX 1.8.2 (windows)

2. Go to \amxmodx-1.8.2-base-windows\addons\amxmodx\scripting\ and admin.sma change name to MeleeHudText.sma
3. Delete old code from MeleeHudText.sma
4. Copy new code (from esforces.com) and paste to MeleeHudText.sma and save
5. Compile MeleeHudText.sma
6. MeleeHudText.amxx tranfer to you \esf\addons\amxmodx\plugins\
7. Go to \esf\addons\amxmodx\config\ and open plugins.ini and add MeleeHudText.amxx
 
Member
✔️ HL Verified
🚂 Steam Linked
Discord Member
Joined
Nov 25, 2015
Messages
94
Best answers
0
Location
Norway
1. Go to amxmodx.org and downlaod amxmodx 1.8.2 base windows:

AmxModX 1.8.2 (windows)

2. Go to \amxmodx-1.8.2-base-windows\addons\amxmodx\scripting\ and admin.sma change name to MeleeHudText.sma
3. Delete old code from MeleeHudText.sma
4. Copy new code (from esforces.com) and paste to MeleeHudText.sma and save
5. Compile MeleeHudText.sma
6. MeleeHudText.amxx tranfer to you \esf\addons\amxmodx\plugins\
7. Go to \esf\addons\amxmodx\config\ and open plugins.ini and add MeleeHudText.amxx
didn't understand, please make a video. or pictures explaining
 
Member
✔️ HL Verified
🚂 Steam Linked
🍂 Regular
Joined
Aug 30, 2010
Messages
261
Best answers
0
I don't know why, but this response made me laugh. The instructions are pretty clear... you certainly don't need an info-graphic to explain it.

Thanks for this script, Jerry, I'll test it out later on.
Take another read of the instructions, I don't find them to be clear at all. Fortunately i have some knowledge of installing plugins. It isn't specific enough.

@Alelander, i'll send you a pm to help you install this plugin
 
Last edited:
Active Member
★ Black Lounger ★
✔️ HL Verified
💻 Oldtimer
Joined
Jul 14, 2002
Messages
8,229
Best answers
0
Location
December
Instructions seem pretty clear to me, only confusing thing may be the part where it said copy new code from esforces.com but the code that needs to be copied is in the first post.
 
Member
✔️ HL Verified
🚂 Steam Linked
🍂 Regular
Joined
Aug 30, 2010
Messages
261
Best answers
0
Yeah that was one of them..Lol. It gave a rough idea anyhow. Also doesn't state where the compiled files have gone...how to open the sma files..just small things that can throw newbies off.
 
Last edited:

Users who are viewing this thread

Top Bottom