[Help] reading server prints
Hello
Is there Anyway to read server prints like client_print() or somethings like that Or even hudmessages? Example for what i want : Welcome to server! When server print this message, plugin must use a command in server like sv_alltalk 1 |
Re: [Help] reading server prints
I belive you can use read_data(), but I didn't use it that much, so I don't know how. But it detects server events :)
|
Re: [Help] reading server prints
Ok , but how can i detect that server prints ?
To read_data I can do it for clients by register_clcmd "say" But what about server? |
Re: [Help] reading server prints
Did you try register_concmd? It's server console, and regular console in one, you can put command that you want to be printed.
Example: PHP Code:
|
Re: [Help] reading server prints
|
Re: [Help] reading server prints
You can't hook client_print unless you're using orpheu or okapi but you can catch messages that are sent with emessage function
|
Re: [Help] reading server prints
Quote:
|
Re: [Help] reading server prints
And for the topic author I really suggest first to search before making a new thread when it has already been answered.
|
Re: [Help] reading server prints
Thew_ConFiger, can you explain specifically why you need the console message as a trigger? In your example you only state that you want to set a cvar based on the welcome message. You may be over-complicating this. You can hook things, like Con_Printf() using orpheu, but again, explain further what you're trying to do.
|
Re: [Help] reading server prints
Quote:
thats all. |
| All times are GMT -4. The time now is 17:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.