Raised This Month: $12 Target: $400
 3% 

Commands Logger Console


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Creey
Junior Member
Join Date: Oct 2017
Location: Morocco
Old 05-22-2018 , 05:52   Commands Logger Console
Reply With Quote #1

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
}
Attached Files
File Type: sma Get Plugin or Get Source (commands_logger.sma - 642 views - 2.0 KB)
Creey is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 05-22-2018 , 06:09   Re: Commands Logger Console
Reply With Quote #2

I tried all these commands on the console but none seems to glitch the game.
__________________
Relaxing is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 05-22-2018 , 06:30   Re: Commands Logger Console
Reply With Quote #3

Quote:
Originally Posted by Relaxing View Post
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?
__________________
HamletEagle is offline
Mr.EwY
Junior Member
Join Date: Apr 2018
Location: In your mind
Old 05-31-2018 , 00:30   Re: Commands Logger Console
Reply With Quote #4

Already made by TheWhitesmith !
Please Crey respect others works , and do not change only variables and say (modified by Crey) -_- !!
Peace !
Mr.EwY is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 06-17-2018 , 11:57   Re: Commands Logger Console
Reply With Quote #5

Oh really
"Edited By Crey" ?
__________________
TheWhitesmith is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 06-17-2018 , 12:05   Re: Commands Logger Console
Reply With Quote #6

Quote:
Originally Posted by HamletEagle View Post
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.
__________________
TheWhitesmith is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-19-2018 , 09:17   Re: Commands Logger Console
Reply With Quote #7

Quote:
Originally Posted by TheWhitesmith View Post
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.
__________________

Last edited by HamletEagle; 09-19-2018 at 09:17.
HamletEagle is offline
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 14:29.


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