Raised This Month: $7 Target: $400
 1% 

server_cmd() output


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 11-02-2019 , 19:09   server_cmd() output
Reply With Quote #1

I know server_cmd() allows you to send commands directly to the console. But is there a way to get the output of such command?

Thanks in advance.
__________________
gabuch2 is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 11-02-2019 , 19:42   Re: server_cmd() output
Reply With Quote #2

What exactly you want to catch? Amxmodx have a lot of features that can do it. I think you do not need to catch them all feedback from server_cmd.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-05-2019 , 01:07   Re: server_cmd() output
Reply With Quote #3

What? Which kind of commands?
And to whom for a player or server console?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
iNvectus
Member
Join Date: Sep 2014
Location: Bulgaria
Old 11-05-2019 , 03:17   Re: server_cmd() output
Reply With Quote #4

https://www.amxmodx.org/api/amxmodx/server_cmd

returns no value, although, as I see it, you might want to log everything from the server console into a file or just to log it somewhere in the abstraction. Will try to find a way and edit my post.
iNvectus is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-05-2019 , 04:19   Re: server_cmd() output
Reply With Quote #5

He needs to explain more, since some commands doesn't have an output!
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply


Thread Tools
Display Modes

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 05:50.


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