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

[INC] Director Hud Message


Post New Thread Reply   
 
Thread Tools Display Modes
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-04-2011 , 07:57   Re: [STOCK] Director Hud Message
Reply With Quote #31

I wish this was added to amxx core, so we could still use set_hudmessage for it

EDIT: You forgot to add support for 0 index (all players)
__________________

Last edited by xPaw; 02-04-2011 at 08:00.
xPaw is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-04-2011 , 08:03   Re: [STOCK] Director Hud Message
Reply With Quote #32

Yes, I've seen that, I wanted to post asap. Will update later.

It's updated now. Added a new param reliableMsg also.
__________________

Last edited by Arkshine; 02-04-2011 at 08:28.
Arkshine is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 02-04-2011 , 13:22   Re: [STOCK] Director Hud Message
Reply With Quote #33

Which is the diff between a Reliable message, from an unreliable one?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 02-04-2011 , 13:28   Re: [STOCK] Director Hud Message
Reply With Quote #34

Someone should make a new rules plugin by using these director hud messages.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-04-2011 , 13:29   Re: [STOCK] Director Hud Message
Reply With Quote #35

Already explained somewhere, but basically, if you send the message into a reliable stream, the player will receive no matter what it happens the message but if there is a problem with the current stream or this message, server will crash. If you send the message into an unreliable stream, if there is a problem, the player might not receive the message or could be dropped but server will be fine.
__________________

Last edited by Arkshine; 02-04-2011 at 13:37.
Arkshine is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 02-04-2011 , 13:52   Re: [STOCK] Director Hud Message
Reply With Quote #36

Thanks for this, it's going to be very very useful for me.

Great job.
__________________
Hi.
Kreation is offline
cFG
SourceMod Donor
Join Date: Aug 2009
Location: Poland, Łódź
Old 02-04-2011 , 15:33   Re: [STOCK] Director Hud Message
Reply With Quote #37

Niceeee!
As someone said before, it could be standard in newest amxmodx versions

@xPaw
knew it, rawr!
__________________
HLXBans - worthy successor of AMXBans

Last edited by cFG; 02-05-2011 at 09:20.
cFG is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-04-2011 , 15:44   Re: [STOCK] Director Hud Message
Reply With Quote #38

Quote:
Originally Posted by cFG View Post
Niceeee!
As someone said before, it could be standard in newest amxmodx versions
And requires minimal job to do that
__________________
xPaw is offline
Lt.RAT
Member
Join Date: Sep 2008
Location: Russia Yekaterinburg
Old 02-04-2011 , 18:20   Re: [STOCK] Director Hud Message
Reply With Quote #39

PHP Code:
    #define write_float(%0)      ( write_byte( ( _:%0 & 0xFF ) ),       \
                                   
write_byte( ( _:%>>  ) & 0xFF ), \
                                   
write_byte( ( _:%>> 16 ) & 0xFF ), \
                                   
write_byte( ( _:%>> 24 ) & 0xFF ) ) 
Isn`t complicated ?

PHP Code:
        write_long_:);
        
write_long_:);
        
write_long_:fadeInTime  );
        
write_long_:fadeOutTime  );
        
write_long_:holdTime );
        
write_long_:fxTime ); 
DHUD without Alpha channel And only 128 characters instead of 512 in regular HUD.

Last edited by Lt.RAT; 02-04-2011 at 18:54.
Lt.RAT is offline
Send a message via ICQ to Lt.RAT
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-04-2011 , 21:15   Re: [STOCK] Director Hud Message
Reply With Quote #40

For those of you who wanted it to mimic the style of [set|show]_hudmessage(), here is an include that lets you do that.

All credits go to Arkshine (and others who helped) for making the original include.
The only thing I did was change how it is used.

Functions:
Code:
set_dhudmessage(red = 0, green = 160, blue = 0, Float:x = -1.0, Float:y = 0.65, effects = 2, Float:fxtime = 6.0, Float:holdtime = 3.0, Float:fadeintime = 0.1, Float:fadeouttime = 1.5, bool:reliable = false) show_dhudmessage(index, const message[], any:...)
Attached Files
File Type: inc dhudmessage.inc (1.7 KB, 311 views)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 12:54.


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