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

Admin Logs 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
pirvu
Senior Member
Join Date: Apr 2009
Location: Here and There [ro]
Old 11-10-2009 , 14:12   Admin Logs 1.2
Reply With Quote #1

[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



Attached Files
File Type: sma Get Plugin or Get Source (adminlogs.sma - 4727 views - 7.1 KB)
__________________
Http://pirvu.mybrute.com <- Try my BRUTE! If you dare!

Last edited by pirvu; 11-21-2009 at 08:59.
pirvu is offline
Send a message via Yahoo to pirvu Send a message via Skype™ to pirvu
soolt
BANNED
Join Date: Aug 2009
Location: Lithuania
Old 11-10-2009 , 14:17   Re: Admin Logs 0.1
Reply With Quote #2

amazing plugin!
soolt is offline
Send a message via Skype™ to soolt
crazy.cipry
Member
Join Date: Dec 2008
Location: Romania
Old 11-10-2009 , 14:19   Re: Admin Logs 0.1
Reply With Quote #3

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.
crazy.cipry is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-10-2009 , 14:27   Re: Admin Logs 0.1
Reply With Quote #4

You obviously just stole code from other places and combined them.

Example:
http://forums.alliedmods.net/showthread.php?t=24185
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
pirvu
Senior Member
Join Date: Apr 2009
Location: Here and There [ro]
Old 11-10-2009 , 14:45   Re: Admin Logs 0.1
Reply With Quote #5

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

__________________
Http://pirvu.mybrute.com <- Try my BRUTE! If you dare!

Last edited by pirvu; 11-10-2009 at 14:57.
pirvu is offline
Send a message via Yahoo to pirvu Send a message via Skype™ to pirvu
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 11-10-2009 , 15:06   Re: Admin Logs 0.1
Reply With Quote #6

You stole my post style
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
pirvu
Senior Member
Join Date: Apr 2009
Location: Here and There [ro]
Old 11-10-2009 , 15:06   Re: Admin Logs 0.1
Reply With Quote #7

Quote:
Originally Posted by meTaLiCroSS View Post
You stole my post style
Yeah i did that too
__________________
Http://pirvu.mybrute.com <- Try my BRUTE! If you dare!
pirvu is offline
Send a message via Yahoo to pirvu Send a message via Skype™ to pirvu
Racoon
Senior Member
Join Date: Mar 2008
Location: Ukraine
Old 11-10-2009 , 17:23   Re: Admin Logs 0.1
Reply With Quote #8

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)
Racoon is offline
Send a message via ICQ to Racoon
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 11-11-2009 , 00:06   Re: Admin Logs 0.1
Reply With Quote #9

Combine the CVars into one.

0 = none
1 = IP
2 = Steam ID
3 = Both
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
pirvu
Senior Member
Join Date: Apr 2009
Location: Here and There [ro]
Old 11-11-2009 , 02:15   Re: Admin Logs 0.1
Reply With Quote #10

Quote:
Originally Posted by Racoon View Post
Does not work.
Fixed .. seems i cannot use %L to log in the file .. don't really know why ..

Quote:
Originally Posted by DarkGod View Post
Combine the CVars into one.

0 = none
1 = IP
2 = Steam ID
3 = Both
Done ;)
__________________
Http://pirvu.mybrute.com <- Try my BRUTE! If you dare!
pirvu is offline
Send a message via Yahoo to pirvu Send a message via Skype™ to pirvu
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 16:50.


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