Raised This Month: $32 Target: $400
 8% 

[INC] Director Hud Message


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-15-2017 , 14:07   Re: [INC] Director Hud Message
Reply With Quote #211

If you have read mine, you would know that what you wrote makes no sense. You didn't provide the plugin that you made, so I can't possibly help you.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Street Boy
Junior Member
Join Date: Mar 2017
Old 03-16-2017 , 06:16   Re: [INC] Director Hud Message
Reply With Quote #212

Quote:
Originally Posted by OciXCrom View Post
If you have read mine, you would know that what you wrote makes no sense. You didn't provide the plugin that you made, so I can't possibly help you.
Yeah you are right, ok this is my code:
Code:
#include <amxmodx>
#include <dhudmessage>

public plugin_init()
{
    register_plugin("Message", "", "");
    register_concmd("knife", "KnifeCommand");
}

public KnifeCommand(client)
{
    set_dhudmessage(255, 255, 0, -1.0, 0.22, 1, 10.0, 10.0, 2.0, 2.0);
    show_dhudmessage(0, "KNIFE Round!!!");
}
And this is my problem:

when I set index to 0.
show_dhudmessage(0, "KNIFE Round!!!")
To display my Director HUD Message to all players, when we are playing and HLTV record our demo, when we change the map, my HLTV crash, and when i want to see that demo, these message appear:
----------------------------------------------------------------------
] viewdemo 01
Playing demo from 01.dem.
WARNING! Demo had bogus number of directory entries!
>Protocol Version 48, Spawn count 1 (HLTV)

Added 781 resources.
Received baseline with 67 entities.
Protocol Version 48, Spawn count 1 (HLTV)
Record connected
Voice adjusted for HLTV
Record connected
Voice adjusted for HLTV
#Cstrike_Name_Change
WARNING! Server:: ParseBad: illegal server message.
WARNING! Server:: ProcessMessage: packet read overflow.
WARNING! Server:: ParseBad: illegal server message.
WARNING! Server:: ProcessMessage: packet read overflow.
WARNING! Server:: ParseHLTV: unknown director command.
WARNING! Server:: ProcessMessage: pac

----------------------------------------------------------------------

But when set index to Client.
show_dhudmessage(client, "KNIFE Round!!!")
Everything work fine and HLTV never crash, and those message above when I want to view demo never appear, and everything is OK...

Can you help me, and fix this, because I want to display my Director HUD Message to all players, not only my teammates.

Sorry for my bad english.

Thank you very much.
Street Boy is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-16-2017 , 07:27   Re: [INC] Director Hud Message
Reply With Quote #213

try looping the clients and skipping hltv, it probably doesn't support dhud messages
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Street Boy
Junior Member
Join Date: Mar 2017
Old 03-16-2017 , 07:37   Re: [INC] Director Hud Message
Reply With Quote #214

Quote:
Originally Posted by georgik57 View Post
try looping the clients and skipping hltv, it probably doesn't support dhud messages
You mean recording demo with clients console!?!?!

I can't recording demo with HLTV anyway!?!?!?!?!?!??!?! This is so bad!!!

Can anyone give me some way to do that PLZ!!??
Street Boy is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-16-2017 , 08:43   Re: [INC] Director Hud Message
Reply With Quote #215

That's...... totally not what he meant.

PHP Code:
#include <amxmodx>
#include <dhudmessage>

public plugin_init()
{
    
register_plugin("Message""""");
    
register_concmd("knife""KnifeCommand");
}

public 
KnifeCommand(client)
{
    new 
iPlayers[32], iPnum;
    
get_players(iPlayersiPnum"ch");
    
set_dhudmessage(2552550, -1.00.22110.010.02.02.0);
    
    for(new 
iiPnumi++)
        
show_dhudmessage(iPlayers[i], "KNIFE Round!!!");

__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Street Boy
Junior Member
Join Date: Mar 2017
Old 03-16-2017 , 18:16   Re: [INC] Director Hud Message
Reply With Quote #216

Quote:
Originally Posted by OciXCrom View Post
That's...... totally not what he meant.

PHP Code:
#include <amxmodx>
#include <dhudmessage>

public plugin_init()
{
    
register_plugin("Message""""");
    
register_concmd("knife""KnifeCommand");
}

public 
KnifeCommand(client)
{
    new 
iPlayers[32], iPnum;
    
get_players(iPlayersiPnum"ch");
    
set_dhudmessage(2552550, -1.00.22110.010.02.02.0);
    
    for(new 
iiPnumi++)
        
show_dhudmessage(iPlayers[i], "KNIFE Round!!!");

Thanks, I'll try this Code.
Street Boy is offline
Old 11-28-2017, 05:51
Relaxing
This message has been deleted by Relaxing. Reason: Wring
kaxp3r
New Member
Join Date: Mar 2018
Old 03-13-2018 , 03:02   Re: [INC] Director Hud Message
Reply With Quote #217

my game (cs 1.6) crashes with no error messages, just straight up crashed! anything wrong that i have done? or is the installation incorrect?
kaxp3r is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-16-2018 , 11:00   Re: [INC] Director Hud Message
Reply With Quote #218

Quote:
Originally Posted by kaxp3r View Post
my game (cs 1.6) crashes with no error messages, just straight up crashed! anything wrong that i have done? or is the installation incorrect?
How is your game crashing related to this thread?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 08-24-2018 , 09:44   Re: [INC] Director Hud Message
Reply With Quote #219

can someone give me dhud code for invisible / transparent dhud ?
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 08-24-2018 , 09:54   Re: [INC] Director Hud Message
Reply With Quote #220

Quote:
Originally Posted by shehzad1234 View Post
can someone give me dhud code for invisible / transparent dhud ?
The 3 first parameters are red, green and blue in the range 0-255. To tone down visibility, just reduce numbers. 127, 127, 127 would give white with 50% transparency.
__________________
klippy is offline
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 15:54.


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