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

Server Print Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 03-07-2005 , 08:08   Server Print Chat
Reply With Quote #1

1. How do i make a chat print that shows up for all users?
I know about "server_print", but doesnt that just print in the server console?

like:
client_print(print_chat, "LuLz0rZ")

Would this works the same and print to all users???
server_print(print_chat, "LuLz0rZ")


2. Is there anyway to change color of the chat text?
Because i saw in the hook mod plugin, if you say hook, there comes up a white chat text message that says that hook mod is enabled...
XunTric is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-07-2005 , 10:26  
Reply With Quote #2

client_print( 0, print_chat, "All Clients Should See This...")

No, you can't change the color of chat text, but you can change the color of HUD Mesage Text... look up: set_hudmessage() and show_hudmessage()
xeroblood is offline
Send a message via MSN to xeroblood
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 03-07-2005 , 10:42  
Reply With Quote #3

Ok thanks. Im going to make a message that says "This server is running with bla bla bla" to all people every 5 min. Where to i place the set_task then? Can it just be in the plugin_init()???
XunTric is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-07-2005 , 12:27  
Reply With Quote #4

OMG! Dont do that!! I for one will never play on any server running your mod if your mod constantly Spams the chat or any part of the screen with crap like advertisements and stuff...

Once people are playing your mod, they wont need a constant reminder.. it will just annoy them...

Instead, show it only once to a player when he/she joins the server, and that's all..
xeroblood is offline
Send a message via MSN to xeroblood
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 03-07-2005 , 12:46  
Reply With Quote #5

Oh, ok...
XunTric is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-07-2005 , 16:25  
Reply With Quote #6

It is possible to change the client_print color in CS at least:
http://forums.alliedmods.net/showthread.php?t=9011
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-07-2005 , 17:04  
Reply With Quote #7

Ahh! Cool, thx for pointing that out... but is seems it is still very limited...
xeroblood is offline
Send a message via MSN to xeroblood
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 11:55.


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