Raised This Month: $ Target: $400
 0% 

Move saytext to center....


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 05-01-2006 , 13:26   Move saytext to center....
Reply With Quote #1

Can anyone please help me to move the green text to the center of the screen, preferrebly the marked area in the .gif below. Right now I am using the msgid SayText.

I was told before to use StatusText but that It might interfere with player names and other text displayed in the center. Thanks for any help.
organizedKaoS is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 05-01-2006 , 13:59  
Reply With Quote #2

i think you need to use a hudmessage for that
__________________
- Bye bye!
nightscreem is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-01-2006 , 15:38  
Reply With Quote #3

Show us the plugin, duh. It should look something like this:
Code:
message_begin(MSG_ONE , get_user_msgid("SayText") , {0,0,0} , id); write_byte(3); write_string("^x04zomg message"); message_end();
You can change the byte line to:
Code:
write_byte(print_center);
I believe.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 05-01-2006 , 16:31  
Reply With Quote #4

Quote:
Originally Posted by v3x
Show us the plugin, duh. It should look something like this:
Code:
message_begin(MSG_ONE , get_user_msgid("SayText") , {0,0,0} , id); write_byte(3); write_string("^x04zomg message"); message_end();
You can change the byte line to:
Code:
write_byte(print_center);
I believe.
Yes v3x, that is exactly how I am using the message_begin function. I will try your suggestion though and post the results.
organizedKaoS is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-01-2006 , 16:39  
Reply With Quote #5

You cannot get it to print a little below the center of the screen because that stuff is hardcoded into the HL engine.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 05-01-2006 , 16:47  
Reply With Quote #6

I just tried the print_center and no go. Any possible way to print the text somewhere besides the chat area? Im really tired of hudmessages cluttering up the game screen and all my players like this server status text. Please help. Im using the message_begin function to print the text in green so that it stands out. Thanks
organizedKaoS is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-02-2006 , 11:40  
Reply With Quote #7

SayText is for chat area only and supports some custom colors.
TextMsg can be used for center text but it's not supports custom colors.
VEN is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 05-02-2006 , 18:22  
Reply With Quote #8

Thanks to everyone who tried to help. I figured it out and found a new place to put it. Take a look
organizedKaoS 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 05:08.


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