Raised This Month: $ Target: $400
 0% 

Printing out server_cmd to client console


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ngEAr
Member
Join Date: Jun 2009
Old 05-04-2010 , 14:09   Printing out server_cmd to client console
Reply With Quote #1

Hi everyone

public status1(id)
{
server_cmd(id,"status")
console_print(id,arg) => like that it prints rcon say , but not stats or status
return PLUGIN_HANDLED;
}

So how it should look to print out status to users console , who requests it.
P.S. i dont need cmdWho code , just need to print out sent command to server console to the user who requested it.
ngEAr is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 05-04-2010 , 15:37   Re: Printing out server_cmd to client console
Reply With Quote #2

client_print(id, print_cmd, "rcon amxx plugins")

?
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
ngEAr
Member
Join Date: Jun 2009
Old 05-04-2010 , 15:55   Re: Printing out server_cmd to client console
Reply With Quote #3

Didn't understand what you meant , the string you gave me is written wrong.
As for client_print , how should i make to print him out information given on "rcon amxx plugins" for example.
ngEAr is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 05-04-2010 , 16:01   Re: Printing out server_cmd to client console
Reply With Quote #4

Oh now I understand you. I do not know how to do it in my head, but I think you just need to get the information and then store it in an array, and then print that array into the console of the client.

I just think that it would be a bit messy, since it might now store the tabs and stuff, so it would be like one long line.

I am sure someone in here can tell you how to get the information and store it somewhere.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-04-2010 , 16:06   Re: Printing out server_cmd to client console
Reply With Quote #5

I don't get what you mean, perhaps Jelly could explain it a little better in clear English, but maybe this will be of use to you.
Code:
client_cmd( id, "status" )
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
ngEAr
Member
Join Date: Jun 2009
Old 05-04-2010 , 16:11   Re: Printing out server_cmd to client console
Reply With Quote #6

Im not good with arrays and that reformatting stuff at all , i have been checking cmdwho and cmdplugins. But didn't manage to somehow imitate that code for myself , since i didnt' understand half of it.
I need status from the server console or for example "stats".
ngEAr is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-04-2010 , 16:13   Re: Printing out server_cmd to client console
Reply With Quote #7

You need to force a client to type status, or you're trying to catch the output?
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
ngEAr
Member
Join Date: Jun 2009
Old 05-04-2010 , 16:30   Re: Printing out server_cmd to client console
Reply With Quote #8

Output , i want to show the output of the status in server console , in user console.
ngEAr is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 05-04-2010 , 18:46   Re: Printing out server_cmd to client console
Reply With Quote #9

I think that what he wants, is a plugin where a guy writes /plugins (as an example), and then get the rcon output of amxx plugins in his own console, as if his console were the server console, without them being an admin.

I just think he wants to let people use rcon commands, which is read-only, without being admins, or have access to rcon commands.

Can you confirm this ngEAr?
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Old 05-04-2010, 20:16
drekes
This message has been deleted by Exolent[jNr]. Reason: Thanks for reporting. Has been handled now.
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 03:39.


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