Raised This Month: $51 Target: $400
 12% 

ice hud message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ahmad111
Member
Join Date: Jul 2019
Old 04-29-2020 , 08:22   ice hud message
Reply With Quote #1

AL SALAM ALYKOM
hi all

so guys i need plugin that when some one killed 5 guys or more 5+ in a round (any round )
his name came up in a hud message like this (if his name player )
player has made an ice !!!
with a sound i add
Ahmad111 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-29-2020 , 10:16   Re: ice hud message
Reply With Quote #2

I hope you mean ace, not ice.

Code:
#include <amxmodx> #if !defined MAX_PLAYERS const MAX_PLAYERS = 32 #endif #if !defined MAX_NAME_LENGTH const MAX_NAME_LENGTH = 32 #endif #define ACE_HUD_COLOR 255, 0, 0 #define ACE_HUD_POSITION -1.0, 0.3 #define ACE_HUD_DURATION 5.0 new g_pAceKills new g_iKills[MAX_PLAYERS + 1] public plugin_init() {     register_plugin("ACE", "1.0", "OciXCrom")     register_logevent("OnRoundStart", 2, "0=World triggered", "1=Round_Start")     register_event("DeathMsg", "OnPlayerKilled", "a")     g_pAceKills = register_cvar("ace_kills", "5") } public client_putinserver(id) {     g_iKills[id] = 0 } public OnRoundStart() {     arrayset(g_iKills, 0, sizeof(g_iKills)) } public OnPlayerKilled() {     new iAttacker = read_data(1), iVictim = read_data(2)     if(is_user_connected(iAttacker) && iAttacker != iVictim)     {         if(++g_iKills[iAttacker] == get_pcvar_num(g_pAceKills))         {             new szName[MAX_NAME_LENGTH]             get_user_name(iAttacker, szName, charsmax(szName))             set_hudmessage(ACE_HUD_COLOR, ACE_HUD_DURATION, .holdtime = ACE_HUD_DURATION)             show_hudmessage(0, "%s has made an ACE!!!", szName)         }     } }
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Ahmad111
Member
Join Date: Jul 2019
Old 04-29-2020 , 12:04   Re: ice hud message
Reply With Quote #3

Thanks fo reply OciXCrom

but i need some edit if you can do it
i need to change the color of the text to green if can
change the position of it like in the pic i attached
https://f.top4top.io/p_1580n9tav1.png
there is no way to add sound , i need to add 3 deffirent sound from my pc when the text is up
and finally i need the text up after the round is end not during the round

BIG thanks

Last edited by Ahmad111; 04-29-2020 at 12:28.
Ahmad111 is offline
Ahmad111
Member
Join Date: Jul 2019
Old 04-29-2020 , 18:17   Re: ice hud message
Reply With Quote #4

i found this plugin :
https://forums.alliedmods.net/showthread.php?t=229593

its good
but i need the text to be a hud message not a print message and to be here with green color
https://f.top4top.io/p_1580n9tav1.png

and add 2 more sounds if can

Last edited by Ahmad111; 04-29-2020 at 18:17.
Ahmad111 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-29-2020 , 21:37   Re: ice hud message
Reply With Quote #5

Quote:
Originally Posted by Ahmad111 View Post
Thanks fo reply OciXCrom

but i need some edit if you can do it
i need to change the color of the text to green if can
change the position of it like in the pic i attached
https://f.top4top.io/p_1580n9tav1.png
there is no way to add sound , i need to add 3 deffirent sound from my pc when the text is up
and finally i need the text up after the round is end not during the round

BIG thanks
Change this code
PHP Code:
#define ACE_HUD_COLOR 255, 0, 0 
To This Code
PHP Code:
#define ACE_HUD_COLOR 0, 255, 0 
// green color
Supremache is offline
Ahmad111
Member
Join Date: Jul 2019
Old 04-30-2020 , 06:03   Re: ice hud message
Reply With Quote #6

But i need to change the position of it and to make 3 differnt sound with hud message last of the round

Last edited by Ahmad111; 04-30-2020 at 06:03.
Ahmad111 is offline
lantimilan
Senior Member
Join Date: May 2016
Old 04-30-2020 , 06:05   Re: ice hud message
Reply With Quote #7

Fos position use this, this help you : https://amxx-bg.info/hudgenerator/
lantimilan is offline
Send a message via MSN to lantimilan
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-30-2020 , 15:00   Re: ice hud message
Reply With Quote #8

Quote:
Originally Posted by Ahmad111 View Post
But i need to change the position of it and to make 3 differnt sound with hud message last of the round

#define ACE_HUD_COLOR 255, 0, 0 // The first three numbers For hud message colors
#define ACE_HUD_POSITION -1.0, 0.3 // The second two numbers For hud message place
#define ACE_HUD_DURATION 5.0 // The last numbers For hud message time

If you want to edit something, download amxmodx 1.8.2 and open progrem and go to "Generators/Hudmessage Generator" and i think you will learn it easylty because it is so easy for anyone to learn it, there's section for color and for position and for time.



Last edited by Supremache; 04-30-2020 at 15:01.
Supremache is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-01-2020 , 07:16   Re: ice hud message
Reply With Quote #9

Quote:
Originally Posted by Supremache View Post
#define ACE_HUD_COLOR 255, 0, 0 // The first three numbers For hud message colors
#define ACE_HUD_POSITION -1.0, 0.3 // The second two numbers For hud message place
#define ACE_HUD_DURATION 5.0 // The last numbers For hud message time

If you want to edit something, download amxmodx 1.8.2 and open progrem and go to "Generators/Hudmessage Generator" and i think you will learn it easylty because it is so easy for anyone to learn it, there's section for color and for position and for time.


No need to download anything. Just use the above link. Works the same.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 05-01-2020 , 08:57   Re: ice hud message
Reply With Quote #10

Quote:
Originally Posted by OciXCrom View Post
No need to download anything. Just use the above link. Works the same.
LoL, No problem dude, i saw there's someone had given him link hud message online generator,and i just was want to give him another Information
Supremache is offline
Reply



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 10:09.


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