Raised This Month: $19 Target: $400
 4% 

[INC] Director Hud Message


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-05-2011 , 01:50   Re: [STOCK] Director Hud Message
Reply With Quote #41

So, write_long works. I thought after looking at the source code it could not work. Don't know why I have not even tried before.

EDIT : Actually here the source code of write_float :

Code:
void MSG_WriteLong (sizebuf_t *sb, int c) {       byte    *buf;       buf = (byte *)SZ_GetSpace (sb, 4);       buf[0] = c&0xff;       buf[1] = (c>>8)&0xff;       buf[2] = (c>>16)&0xff;       buf[3] = c>>24; }

So, the same like I've done before. Though I'm not sure to see well the difference between MSG_WriteLong and MSG_WriteFloat.

It was planned to post today such stock since someone requests it. I guess I will attach the file on the first post.

EDIT : done.
__________________

Last edited by Arkshine; 02-05-2011 at 08:58.
Arkshine is offline
nnajko
Senior Member
Join Date: May 2009
Location: Sweden
Old 02-05-2011 , 08:10   Re: [INC] Director Hud Message
Reply With Quote #42

Awesome
nnajko is offline
Old 02-05-2011, 09:00
Lt.RAT
This message has been deleted by Lt.RAT. Reason: nvm
Lt.RAT
Member
Join Date: Sep 2008
Location: Russia Yekaterinburg
Old 02-05-2011 , 09:11   Re: [INC] Director Hud Message
Reply With Quote #43

PHP Code:
    new buffer128 ];
    
vformatbuffercharsmaxbuffer ), message); 
Who wants to change it with "static?" and buffer = '^0'; ?
Lt.RAT is offline
Send a message via ICQ to Lt.RAT
walkero
Junior Member
Join Date: Feb 2011
Location: Bulgaria
Old 02-05-2011 , 09:59   Re: [INC] Director Hud Message
Reply With Quote #44

I would definately use this in my private stuff, thanks alot.
walkero is offline
Send a message via Skype™ to walkero
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-05-2011 , 13:25   Re: [INC] Director Hud Message
Reply With Quote #45

Quote:
Originally Posted by Lt.RAT View Post
PHP Code:
    new buffer128 ];
    
vformatbuffercharsmaxbuffer ), message); 
Who wants to change it with "static?" and buffer = '^0'; ?
I don't think the frequency of the function being called and the size of the array qualifies it to be static.
Maybe if it was used in PreThink then it would need to.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-05-2011 , 14:33   Re: [INC] Director Hud Message
Reply With Quote #46

You could also give me credits for the "DHUD" name. You know, for the lulz.
__________________
hleV is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-05-2011 , 18:01   Re: [INC] Director Hud Message
Reply With Quote #47

Updated inc because of a typo, "message" was used instead of "buffer".
__________________
Arkshine is offline
t3hNox
Senior Member
Join Date: Oct 2009
Old 02-06-2011 , 03:56   Re: [INC] Director Hud Message
Reply With Quote #48

Nice work.
I'll definitely use it
t3hNox is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 02-07-2011 , 07:54   Re: [INC] Director Hud Message
Reply With Quote #49

Nice,I'll use this in my mod.Thanks Arkshine!
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
xakintosh
I run no-steam servers!
Join Date: Feb 2010
Location: Edge of nowhere
Old 02-12-2011 , 10:28   Re: [INC] Director Hud Message
Reply With Quote #50

Code:
set_dhudmessage(255,0,0, -1.0, 0.65, 2, 6.03.0, 0.1, 1.5, false )     for(i = 0; i < get_maxplayers(); i++) {         show_dhudmessage(i, "%i rounds remaining",roundLeft)     }
Why i can't get rounds left ?
EDIT : false to true :p sorry
__________________
As soon as possible.

Last edited by xakintosh; 02-12-2011 at 10:33.
xakintosh is offline
Send a message via Yahoo to xakintosh Send a message via Skype™ to xakintosh
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 16:48.


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