AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Server Print Chat (https://forums.alliedmods.net/showthread.php?t=11009)

XunTric 03-07-2005 08:08

Server Print Chat
 
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...

xeroblood 03-07-2005 10:26

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()

XunTric 03-07-2005 10:42

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()???

xeroblood 03-07-2005 12:27

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

XunTric 03-07-2005 12:46

Oh, ok...

XxAvalanchexX 03-07-2005 16:25

It is possible to change the client_print color in CS at least:
http://forums.alliedmods.net/showthread.php?t=9011

xeroblood 03-07-2005 17:04

Ahh! :D Cool, thx for pointing that out... but is seems it is still very limited... :(


All times are GMT -4. The time now is 14:13.

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