AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   server console > client console (https://forums.alliedmods.net/showthread.php?t=188123)

hyphen 06-22-2012 15:18

server console > client console
 
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.

Exolent[jNr] 06-22-2012 15:38

Re: server console > client console
 
Use Orpheu to hook print to server console. Search for Orpheu and Con_Printf

hyphen 06-23-2012 01:55

Re: server console > client console
 
anything other than hooking server console ?. dnt want to use orpheu as new module to server.

YamiKaitou 06-23-2012 02:00

Re: server console > client console
 
Maybe a Metamod plugin if it exists, doubt it does exist currently. But what do you have against adding another module?

hyphen 06-23-2012 02:02

Re: server console > client console
 
Don't wanna add extra module just for a small piece of work in a single plugin

Kreation 06-23-2012 02:04

Re: server console > client console
 
Quote:

Originally Posted by hyphen (Post 1734294)
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.

hyphen 06-23-2012 02:05

Re: server console > client console
 
Yes, current I dont require extra module. So any other possible way to send message from server console to client ?

YamiKaitou 06-23-2012 02:14

Re: server console > client console
 
Option 1: Use rcon
Option 2: Use Orpheu or a probably non-existing Metamod Plugin

Those are the only options.

hyphen 06-23-2012 02:41

Re: server console > client console
 
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 ^"^""



All times are GMT -4. The time now is 06:09.

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