AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Move saytext to center.... (https://forums.alliedmods.net/showthread.php?t=27877)

organizedKaoS 05-01-2006 13:26

Move saytext to center....
 
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. :up:

nightscreem 05-01-2006 13:59

i think you need to use a hudmessage for that

v3x 05-01-2006 15:38

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.

organizedKaoS 05-01-2006 16:31

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. :up:

v3x 05-01-2006 16:39

You cannot get it to print a little below the center of the screen because that stuff is hardcoded into the HL engine.

organizedKaoS 05-01-2006 16:47

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 :up:

VEN 05-02-2006 11:40

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.

organizedKaoS 05-02-2006 18:22

Thanks to everyone who tried to help. I figured it out and found a new place to put it. Take a look :up:


All times are GMT -4. The time now is 05:08.

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