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

Command logger


Post New Thread Reply   
 
Thread Tools Display Modes
Tramp
Senior Member
Join Date: Aug 2005
Old 06-02-2006 , 09:39  
Reply With Quote #21

I have the same, plugin don;t work
Tramp is offline
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 06-02-2006 , 14:46  
Reply With Quote #22

Quote:
Originally Posted by Tramp
I have the same, plugin don;t work
Use suicid3's command logger, it works very well.

slmclarengt
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!

Last edited by slmclarengt; 06-27-2006 at 13:50.
slmclarengt is offline
XLN's | [Lo]Phreak^n^c
Senior Member
Join Date: May 2006
Location: Argentina
Old 12-20-2006 , 14:40   Re: Command logger
Reply With Quote #23

Quote:
Originally Posted by slmclarengt View Post
I am getting blank logs:

Code:
L 03/18/2006 - 10:34:59: Log file started (file "cstrike\addons\amxmodx\logs\custom.log") (game "cstrike") (amx "1.70")
L 03/18/2006 - 10:34:59: 
L 03/18/2006 - 10:37:26:
Those are the first 3 lines in my custom.log.

The rest of it is empty as well, they just say the date/time but not the command.

Modules:
Code:
Currently loaded modules:
name version author status
[ 1] Fun 1.70 AMX Mod X Dev Team running
[ 2] Engine 1.70 AMX Mod X Dev Team running
[ 3] FakeMeta 1.70 AMX Mod X Dev Team running
[ 4] MySQL 1.70 AMX Mod X Dev Team running
[ 5] GeoIP 1.70 AMX Mod X Dev Team running
[ 6] CStrike 1.70 AMX Mod X Dev Team running
[ 7] CSX 1.70 AMX Mod X Dev Team running
7 modules, 7 correct
Plugins:
Code:
Currently loaded plugins:
name version author file status
[ 1] Command logger 0.2 JGHG commandlogger.a running
[ 2] Admin Base 1.70 AMXX Dev Team admin.amxx running
[ 3] AMXBans 4.3 YoMama/Lux & lan amxbans.amxx debug
[ 4] Admin Commands 1.70 AMXX Dev Team admincmd.amxx running
[ 5] Admin Help 1.70 AMXX Dev Team adminhelp.amxx running
[ 6] Multi-Lingual Sys 1.70 AMXX Dev Team multilingual.am running
[ 7] Menus Front-End 1.70 AMXX Dev Team menufront.amxx running
[ 8] Commands Menu 1.70 AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.70 AMXX Dev Team plmenu.amxx running
[ 10] Teleport Menu 1.70 AMXX Dev Team telemenu.amxx running
[ 11] Maps Menu 1.70 AMXX Dev Team mapsmenu.amxx running
[ 12] Admin Chat 1.70 AMXX Dev Team adminchat.amxx running
[ 13] Anti Flood 1.70 AMXX Dev Team antiflood.amxx running
[ 14] Scrolling Message 1.70 AMXX Dev Team scrollmsg.amxx running
[ 15] Info. Messages 1.70 AMXX Dev Team imessage.amxx running
[ 16] Admin Votes 1.70 AMXX Dev Team adminvote.amxx running
[ 17] Pause Plugins 1.70 AMXX Dev Team pausecfg.amxx running
[ 18] Stats Configurati 1.70 AMXX Dev Team statscfg.amxx running
[ 19] Restrict Weapons 1.70 AMXX Dev Team restmenu.amxx running
[ 20] Auto-Responder (f 0.3 v3x auto_responder0 running
[ 21] AMX Toggle Immuni 3.0 slmclarengt amx_toggleimmun running
[ 22] Advanced Roll The v2.5 RC Striker roll_the_dice.a running
[ 23] Bad Camper 1.1 Brad Jones bad_camper.amxx running
[ 24] ATAC 2.5.4.1 T(+)rget/f117bom amxx_atac.amxx running
[ 25] ATAC Config 1.1.06 f117bomb & T(+)r amxx_atac_cfg.a running
[ 26] Admin Spectator E 1.2i KoST admin_spec_esp. running
[ 27] AMXX Music 2.3 Cheap_Suit AMXX_Music.amxx running
[ 28] DeagsMapManage 2.27d Deags deagsmapmanage2 running
[ 29] CS Team 0.1 jghg cs_team.amxx running
[ 30] AdminModX 0.9h AMXX DoD Communi adminmodx.amxx running
[ 31] Admin Clexec 0.9.4 default admin_clexec.am running
[ 32] Loading Sound 1.0 Amxx User loadingsound.am running
[ 33] Warcraft 3 Frozen 2.3.2 R Geesu==(Pimp Dad warcraft3FT.amx running
33 plugins, 33 running
commandlogging stuff in my server.cfg:
Code:
//Command logger commands to be logged
commandlogger_register "amx_ban"
commandlogger_register "amx_banip"
commandlogger_register "amx_kick"
commandlogger_register "amx_map"        
commandlogger_register "amx_slay"
commandlogger_register "amx_slap"
commandlogger_register "amx_godmode"
commandlogging stuff in my amxx.cfg:
Code:
// Command logger
commandlogger_logto 2
commandlogger_filepath custom.log
commandlogger_filter 1
Where should I put this stuff in order to keep it consistent?
How can I make it actually show the commands and the admin again?

Slmclarengt (BnD | Sleeper)
my server do the same blank logs
__________________
::: If u're 555 then I'm 666 :::

Last edited by XLN's | [Lo]Phreak^n^c; 01-21-2009 at 05:02.
XLN's | [Lo]Phreak^n^c is offline
1337zuzu
New Member
Join Date: Mar 2010
Old 03-01-2010 , 13:02   Re: Command logger
Reply With Quote #24

any chance to get this plugin to save logs as mysql?
1337zuzu is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 04-04-2015 , 18:16   Re: Command logger
Reply With Quote #25

Nice plugin, think I found a bug though:

Code:
g_reggedCmds[g_reggedCmdsNum] = arg
Should be replaced with:

Code:
copy(g_reggedCmds[g_reggedCmdsNum], CMDSIZE, arg)

Last edited by pizzahut; 04-04-2015 at 19:17.
pizzahut is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-05-2015 , 11:59   Re: Command logger
Reply With Quote #26

Quote:
Originally Posted by pizzahut View Post
Nice plugin, think I found a bug though:

Code:
g_reggedCmds[g_reggedCmdsNum] = arg
Should be replaced with:

Code:
copy(g_reggedCmds[g_reggedCmdsNum], CMDSIZE, arg)
While I agree that using copy native is a better way, his one is acceptable, since arrays have the same size.
__________________
HamletEagle is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 04-05-2015 , 17:24   Re: Command logger
Reply With Quote #27

It would be acceptable if he copied the array, but he copies the pointer. Keep in mind that arg is local. Accessing it later by altering the pointer of a global variable is a bad idea. This pointer may become invalid (if memory is freed), or reused multiple times (if memory is freed and allocated again). It depends on the garbage collection of AMXX / Pawn. There is no guarantee what happens with the data. Check Google / Wikipedia for use-after-free. It's a big no-no.

Last edited by pizzahut; 04-06-2015 at 07:48.
pizzahut 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 12:39.


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