View Single Post
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