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

server console > client console


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hyphen
Senior Member
Join Date: Aug 2011
Old 06-22-2012 , 15:18   server console > client console
Reply With Quote #1

Can it be possible to transfer a message from server console to client console.

for ex: being an admin I use amx_unbanip <....>. This command will unban specific IP from listip and thus some output will be written to server console like: IP filter removed/Couldn't find ... How can I transfer this message to that admin console. Don't know whether its possible or not.
hyphen is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-22-2012 , 15:38   Re: server console > client console
Reply With Quote #2

Use Orpheu to hook print to server console. Search for Orpheu and Con_Printf
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hyphen
Senior Member
Join Date: Aug 2011
Old 06-23-2012 , 01:55   Re: server console > client console
Reply With Quote #3

anything other than hooking server console ?. dnt want to use orpheu as new module to server.
hyphen is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-23-2012 , 02:00   Re: server console > client console
Reply With Quote #4

Maybe a Metamod plugin if it exists, doubt it does exist currently. But what do you have against adding another module?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Old 06-23-2012, 02:01
hyphen
This message has been deleted by hyphen.
hyphen
Senior Member
Join Date: Aug 2011
Old 06-23-2012 , 02:02   Re: server console > client console
Reply With Quote #5

Don't wanna add extra module just for a small piece of work in a single plugin
hyphen is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 06-23-2012 , 02:04   Re: server console > client console
Reply With Quote #6

Quote:
Originally Posted by hyphen View Post
Don't wanna add extra module just for a small piece of work in a single plugin
You might use Orpheu for other things than just this single plugin, and if that is so you will already have it installed.
__________________
Hi.
Kreation is offline
hyphen
Senior Member
Join Date: Aug 2011
Old 06-23-2012 , 02:05   Re: server console > client console
Reply With Quote #7

Yes, current I dont require extra module. So any other possible way to send message from server console to client ?
hyphen is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-23-2012 , 02:14   Re: server console > client console
Reply With Quote #8

Option 1: Use rcon
Option 2: Use Orpheu or a probably non-existing Metamod Plugin

Those are the only options.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
hyphen
Senior Member
Join Date: Aug 2011
Old 06-23-2012 , 02:41   Re: server console > client console
Reply With Quote #9

oh nice. 1st option is good, I forget about it. I can use amx to execute rcon command from client console so the server message will printed on client console. say for ex this piece of code should work

PHP Code:
if (!cmd_access(idlevelcid1))
    return 
PLUGIN_HANDLED

client_cmd
("rcon_password <RCON Pass>")
client_cmd("rcon removeid")
client_cmd("rcon_password ^"^""
hyphen 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 10:42.


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