Raised This Month: $32 Target: $400
 8% 

Show all executed commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Seather
Member
Join Date: Oct 2004
Plugin ID:
499
Plugin Version:
0.0.1
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    debug plugin, displays on the server console all commands sent by everyone
    Old 08-09-2008 , 19:29   Show all executed commands
    Reply With Quote #1

    for testing/debuging/development

    uses multiple methods, each method has different pros and cons
    Attached Files
    File Type: sp Get Plugin or Get Source (show_executed_commands.sp - 2730 views - 2.6 KB)
    Seather is offline
    MaKTaiL
    Senior Member
    Join Date: Jul 2008
    Location: Brazil
    Old 08-09-2008 , 20:16   Re: Show all executed commands
    Reply With Quote #2

    What are the commands to use it?
    MaKTaiL is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 08-09-2008 , 20:26   Re: Show all executed commands
    Reply With Quote #3

    There are no commands for the plugin. You just load it and it will start showing information regarding the commands that are executed.
    bl4nk is offline
    Alex4921
    Junior Member
    Join Date: Jan 2009
    Location: er.....
    Old 02-17-2009 , 15:18   Re: Show all executed commands
    Reply With Quote #4

    Could you just quickly make a version which will output to a log file as well?For dev purposes when i want to review the output later
    Alex4921 is offline
    munchies
    Junior Member
    Join Date: Jan 2009
    Old 02-18-2009 , 11:03   Re: Show all executed commands
    Reply With Quote #5

    Quote:
    Originally Posted by Alex4921 View Post
    Could you just quickly make a version which will output to a log file as well?For dev purposes when i want to review the output later
    Yep sounds just like what i was going to ask
    munchies is offline
    Alex4921
    Junior Member
    Join Date: Jan 2009
    Location: er.....
    Old 02-19-2009 , 03:33   Re: Show all executed commands
    Reply With Quote #6

    Is this thread dead?
    Alex4921 is offline
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Extreme low earth orbit
    Old 02-19-2009 , 03:57   Re: Show all executed commands
    Reply With Quote #7

    just replace all PrintToServer(...) with LogToFile("path/to/file", ...);

    where "path/to/file" could be "myfile.log" which should write to MOD/myfile.log... or perhaps MOD/addons/sourcemod/myfile.log

    better yet, copy the PrintToServer and change the new one to LogToFile so you get both.
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod
    paegus is offline
    mikeym9
    Member
    Join Date: Feb 2009
    Old 04-02-2009 , 16:22   Re: Show all executed commands
    Reply With Quote #8

    so like this " LogToFile("cstrike/addons/sourcemod", ...);("[show method 2] <%i> %s %s", client, cmdname, argstr);"
    mikeym9 is offline
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Extreme low earth orbit
    Old 04-03-2009 , 03:36   Re: Show all executed commands
    Reply With Quote #9

    no, if you compare the PrintToServer and LogToFile functions (linked?) you will see that LogToFile is essentially the same thing except its first parameter is a file destination. so it would be...

    Code:
    LogToFile("path/to/file.log", "Normal goes here %s %d %f...", szStringVar, iIntegerVar, flFloatVar);
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod
    paegus is offline
    Dyl0n
    Member
    Join Date: Oct 2011
    Old 06-06-2013 , 03:14   Re: Show all executed commands
    Reply With Quote #10

    I changed this up a bit.. I don't know how to do much but I got it to work and compile with no errors.

    It will log with the persons name + steam id + the command they used + the args they used for that command if any.

    Logs to tf/logs/execcommands.log (I created a log folder there.. idk if you will have to)

    Spoiler


    Again, I don't know much about coding this kind of stuff and mostly go off of examples so I'm sorry if anything is wrong.
    __________________
    BABIES DONT YOU PANIC!
    If you enjoy something I did please consider donating!
    Dyl0n 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 18:20.


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