AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Admin Logs 1.2 (https://forums.alliedmods.net/showthread.php?t=108878)

pirvu 11-10-2009 14:12

Admin Logs 1.2
 
1 Attachment(s)
[AmXX] Admin Logs 1.2


Description:

- With this plugin you can log all admin commands used by a player in a folder / in a log file


Cvars:

- log_steam 0/1/2/3
  • 1 Log the ip of the user
  • 2 Log the steamid of the user
  • 3 Log both
  • 0 Log neither
- log_direct 0/1/2
  • 0 Log in the directory with the date
  • 1 Log in the directory with the ip
  • 2 Log in the directory with the steamid
- log_name0/1
  • 1 The log file is the name of the admin
  • 0 The log file is the current date
- log_amxx 0/1
  • 0 Don't log amx_comands
  • 1 Log amx_ commands
- log_admin 0/1
  • 0 Don't log admin_comands
  • 1 Log admin_ commands
- log_zp 0/1
  • 0 Don't log zp_comands
  • 1 Log zp_ commands
- log_usefile 0/1
The name of the log file will be according to users.ini
  • 0 Log normal
  • 1 Log using users.ini





Credits :
GHW_Chronic For his Anti admin abuse plugin http://forums.alliedmods.net/showthread.php?t=24185
DarkGod - help improve the code
xPaw - help improve the code
Xellath - thanks for the ideea + function to check the name for invalid characters
worldspawn - ideea to read users.ini
Racoon - test


Note : You need to place this plugin in front of the others ( This should be the first plugin in plugins.ini)

adminlogs.amxx
;============================================ ========
admincmd.amxx


If you find errors, please, post here, suggestions are welcome!



This is my first plugin so don't judge so harshly. Also my English skills suck.

Thanks
eforie for the image :)


http://forums.alliedmods.net/attachm...5&d=1258464748

soolt 11-10-2009 14:17

Re: Admin Logs 0.1
 
amazing plugin! :)

crazy.cipry 11-10-2009 14:19

Re: Admin Logs 0.1
 
WHat use has this plugin? Every command in AMXX plugins should have a log_amx, and most of the administrative plugins have it.

Anyway congrats.

Exolent[jNr] 11-10-2009 14:27

Re: Admin Logs 0.1
 
You obviously just stole code from other places and combined them.

Example:
http://forums.alliedmods.net/showthread.php?t=24185

pirvu 11-10-2009 14:45

Re: Admin Logs 0.1
 
Oh yeah .. i know that plugin ..

Some time ago i requested a plugin like this and you all sent me that plugin ..

And you are right .. i used some of that code ... Should write GHW_Chronic in credits ... I apologize

There already are thousands of plugins so if i try something new and complicated and don't have that much AMXX skills ,( because you must admit it AMXX is not C++ you need to know lots of functions and pawn skills are not used that much ...) i can't make it .. So i try a plugin that i need and it's not done as i wanted .. so i can use some code but make a usefull plugin


meTaLiCroSS 11-10-2009 15:06

Re: Admin Logs 0.1
 
You stole my post style :evil::evil::evil:

pirvu 11-10-2009 15:06

Re: Admin Logs 0.1
 
Quote:

Originally Posted by meTaLiCroSS (Post 986003)
You stole my post style :evil::evil::evil:

Yeah i did that too :oops:

Racoon 11-10-2009 17:23

Re: Admin Logs 0.1
 
Does not work.
Quote:

L 11/10/2009 - 23:25:00: Start of error session.
L 11/10/2009 - 23:25:00: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20091110.log")
L 11/10/2009 - 23:25:00: String formatted incorrectly - parameter 15 (total 14)
L 11/10/2009 - 23:25:00: [AMXX] Displaying debug trace (plugin "adminlogs.amxx")
L 11/10/2009 - 23:25:00: [AMXX] Run time error 25: parameter error
L 11/10/2009 - 23:25:00: [AMXX] [0] phpnp0g64.sma::client_command (line 71)
L 11/10/2009 - 23:25:10: String formatted incorrectly - parameter 15 (total 14)
L 11/10/2009 - 23:25:10: [AMXX] Displaying debug trace (plugin "adminlogs.amxx")
L 11/10/2009 - 23:25:10: [AMXX] Run time error 25: parameter error
L 11/10/2009 - 23:25:10: [AMXX] [0] phpnp0g64.sma::client_command (line 71)

DarkGod 11-11-2009 00:06

Re: Admin Logs 0.1
 
Combine the CVars into one.

0 = none
1 = IP
2 = Steam ID
3 = Both

pirvu 11-11-2009 02:15

Re: Admin Logs 0.1
 
Quote:

Originally Posted by Racoon (Post 986093)
Does not work.

Fixed .. seems i cannot use %L to log in the file .. don't really know why ..

Quote:

Originally Posted by DarkGod (Post 986404)
Combine the CVars into one.

0 = none
1 = IP
2 = Steam ID
3 = Both

Done ;)


All times are GMT -4. The time now is 07:14.

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