AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Commands Logger Console (https://forums.alliedmods.net/showthread.php?t=307719)

Creey 05-22-2018 05:52

Commands Logger Console
 
1 Attachment(s)
Hello guys

this is plugin you can show all commands typed in console You will find it In(game/addons/amxmodx/data/commands_logs.txt)

and you can show cheaters in Cheaters_Log.log You will find it In (game/addons/amxmodx/logs/Cheaters_Log.log)

Sorry For My bad english

Code:

#include <amxmodx>
#include <amxmisc>


new g_cmdLine1[512], g_cmdLine2[512], g_cmdLine3[512], g_cmdLine4[512], g_bSuspected[33]
new const g_UsualCommands[][] = 
{
        "chooseteam", // Add Command You Want Do not Show In Logs commands_logs.txt
        "menuselect", // Add Command You Want Do not Show In Logs commands_logs.txt
        "say",
        "jointeam",
        "VTC_CheckEnd"
}

new const g_CheatCommands[][] = {
        "xScript",
        "xHack_",
        "superstref",
        "jumpbug",
        "xdaa",
        "bog",
        "gstrafe",
        "ground"
}


public plugin_init() {
        register_plugin("Commands Logger", "1.0", "Edited By Crey")
}

public plugin_natives() {
        register_native("set_suspected", "_set_suspected")
}

public _set_suspected(id) {
        g_bSuspected[id] = true
}

public client_disconnected(id) {
        g_bSuspected[id] = false
}

public client_command(id)
{
        new name[32]
        new logfile[50];
        new datadir[20];
        new text[charsmax(name)+(4*charsmax(g_cmdLine1))]
        get_datadir(datadir, charsmax(datadir));
        formatex(logfile, charsmax(logfile), "%s/commands_log.txt", datadir);
        get_user_name(id, name, charsmax(name))
        read_argv(0, g_cmdLine1, 511)
        read_argv(1, g_cmdLine2, 511)
        read_argv(2, g_cmdLine3, 511)
        read_argv(3, g_cmdLine4, 511)
        if(!g_bSuspected[id]) {
                for (new i = 0; i < sizeof(g_UsualCommands); i++) {
                        if(containi(g_cmdLine1, g_UsualCommands[i]) != -1) {
                                return PLUGIN_CONTINUE
                        }
                }
        }
       
        for (new i = 0; i < sizeof(g_CheatCommands); i++) {
                if(containi(g_cmdLine1, g_CheatCommands[i]) != -1) {
                        log_to_file("Cheaters_Log.log", "Player %s suspected of cheating!, command: %s %s %s %s", name, g_cmdLine1, g_cmdLine2, g_cmdLine3, g_cmdLine4)
                }
        }
       
       
        formatex(text, charsmax(text), "%s: %s %s %s %s", name, g_cmdLine1, g_cmdLine2, g_cmdLine3, g_cmdLine4);
        write_file(logfile, text)
        if(g_bSuspected[id]) {
                formatex(logfile, charsmax(logfile), "addons/amxmodx/suspected/%s-Suspected.txt", name);
                write_file(logfile, text)
        }
       
        return PLUGIN_CONTINUE
}


Relaxing 05-22-2018 06:09

Re: Commands Logger Console
 
I tried all these commands on the console but none seems to glitch the game.

HamletEagle 05-22-2018 06:30

Re: Commands Logger Console
 
Quote:

Originally Posted by Relaxing (Post 2593257)
I tried all these commands on the console but none seems to glitch the game.

Most likely some non steam stuff that we do not support.

@OP, are any of this exploits working on an updated server WITHOUT dproto?

Mr.EwY 05-31-2018 00:30

Re: Commands Logger Console
 
Already made by TheWhitesmith !
Please Crey respect others works , and do not change only variables and say (modified by Crey) -_- !!
Peace :) !

TheWhitesmith 06-17-2018 11:57

Re: Commands Logger Console
 
Oh really
"Edited By Crey" ?

TheWhitesmith 06-17-2018 12:05

Re: Commands Logger Console
 
Quote:

Originally Posted by HamletEagle (Post 2593260)
Most likely some non steam stuff that we do not support.

@OP, are any of this exploits working on an updated server WITHOUT dproto?

I am the Author of this plugin and I can say that it's made specially for NoSteam servers, using this on a Steam server has no benefit since no command can flood it.

HamletEagle 09-19-2018 09:17

Re: Commands Logger Console
 
Quote:

Originally Posted by TheWhitesmith (Post 2597482)
I am the Author of this plugin and I can say that it's made specially for NoSteam servers, using this on a Steam server has no benefit since no command can flood it.

Unapproved.


All times are GMT -4. The time now is 12:19.

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