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

Admin Logs 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 11-12-2009 , 01:58   Re: Admin Logs 0.2
Reply With Quote #21

I don't have anything against this plugin. It's actually a very good and useful one.
I'll probably even start using this myself. You never really know what those pesky admins are up to.

One suggestion would be to make the /Adminname/ directory be their Steam ID instead since a lot of admins change their name frequently.
__________________
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-12-2009 , 02:02   Re: Admin Logs 0.2
Reply With Quote #22

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

Last edited by pirvu; 11-12-2009 at 02:20.
pirvu is offline
Send a message via Yahoo to pirvu Send a message via Skype™ to pirvu
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 11-12-2009 , 02:21   Re: Admin Logs 0.2
Reply With Quote #23

Oh, I meant the .log file. My bad. -_- I guess this works, too.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
crazy.cipry
Member
Join Date: Dec 2008
Location: Romania
Old 11-14-2009 , 14:27   Re: Admin Logs 0.1
Reply With Quote #24

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



Done ;)
It was more beautiful using switch instead of so many elseifs :-@
crazy.cipry is offline
pirvu
Senior Member
Join Date: Apr 2009
Location: Here and There [ro]
Old 11-14-2009 , 17:55   Re: Admin Logs 0.1
Reply With Quote #25

Quote:
Originally Posted by crazy.cipry View Post
It was more beautiful using switch instead of so many elseifs :-@
1. else - if works better than switch

2. i edited the code and it looks better :-?

3. Any suggestions .. etc?
__________________
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
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-14-2009 , 18:19   Re: Admin Logs 0.2
Reply With Quote #26

  • I think it would be better to check if player has access and only after that read the arguments and check if it has amx_ prefix.
  • I see you use static's once, use static's everywhere in client_command to save memory.
  • Use formatex( ) instead of format( ), it's faster.
  • Use switch( ) instead of ifs - cvar_log, cvar_save_direct.
    Code:
        switch( cvar_log ) {         case 0: formatex( .. );         case 1: formatex( .. );         case 2: formatex( .. );         default: formatex( .. );     }
  • You could generate the folder paths just once in plugin_init.
__________________
xPaw is offline
pirvu
Senior Member
Join Date: Apr 2009
Location: Here and There [ro]
Old 11-15-2009 , 03:38   Re: Admin Logs 0.2
Reply With Quote #27

Oh fine , i'll use switches ...
__________________
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
eforie
BANNED
Join Date: Dec 2008
Location: Romania
Old 11-17-2009 , 08:36   Re: Admin Logs 0.3
Reply With Quote #28

could you give me 0.2 version? Work`s perfectly for me.
But 0.3 make me,many folders without admin logs.


From amxx.cfg
amx_logs 3
//1 Log the ip of the user
//2 Log the steamid of the user
//3 Log both
//0 Log neither
amx_save_directory 0
//0 Log in the directory with the date
//1 Log in the directory with the ip
//2 Log in the directory with the steamid
amx_save_name 0
//0 The log file is the name of the admin
//1 The log file is the current date




L 11/17/2009 - 15:219: Start of error session.
L 11/17/2009 - 15:219: Info (map "de_inferno") (file "addons/amxmodx/logs/error_20091117.log")
L 11/17/2009 - 15:219: Couldn't write file "cstrike/addons/amxmodx/configs/adminlogs/1117/adminlogs/1117/adminlogs/1117/adminlogs/1117/adminlogs/1117/adminlogs/1117/adminlogs/1117/adminlogs/1117/adminlogs/1117/adminlogs/1117/adminlogs/1117/adminlogs/1"
L 11/17/2009 - 15:219: [AMXX] Displaying debug trace (plugin "adminlogs.amxx")
L 11/17/2009 - 15:219: [AMXX] Run time error 10: native error (native "write_file")
L 11/17/2009 - 15:219: [AMXX] [0] adminlogs.sma::client_command (line 121)
Attached Thumbnails
Click image for larger version

Name:	0.2 version.JPG
Views:	14571
Size:	63.3 KB
ID:	53685   Click image for larger version

Name:	0.3 version.JPG
Views:	366
Size:	22.3 KB
ID:	53686  

Last edited by eforie; 11-17-2009 at 08:42.
eforie is offline
Send a message via Yahoo to eforie Send a message via Skype™ to eforie
pirvu
Senior Member
Join Date: Apr 2009
Location: Here and There [ro]
Old 11-17-2009 , 13:45   Re: Admin Logs 0.3
Reply With Quote #29

You're right the current version didn't work well ..

Updated ...

Thanks for testing
__________________
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
CHyCMyMpNk
Senior Member
Join Date: Jun 2008
Location: PTZ
Old 11-18-2009 , 12:54   Re: Admin Logs 0.3
Reply With Quote #30

How can I add my comand ?

in this
PHP Code:
if( containi(pCommand"amx_") != -
add this
PHP Code:
if( containi(pCommand"zp_") != -
CHyCMyMpNk is offline
Send a message via ICQ to CHyCMyMpNk
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 14:18.


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