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

Server Clean Up [0.1 beta]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
Jamster
Veteran Member
Join Date: Jun 2008
Old 08-27-2013 , 10:16   Server Clean Up [0.1 beta]
Reply With Quote #1

This plugin requires the latest 1.8.3-dev snapshot of AMXX, go to http://www.amxmodx.org/snapshots.php to update, you will also need to download the plugin source and compile yourself, thanks.

Hello AMXX crew, this is a port of my Server Clean Up plugin from sourcemod. Read the attached config on how to configure it.

WARNING: Spray cleaning is NOT in this release, I'm trying to figure out how to clean out custom.hpk, I'm not sure if it's possible. Let me know if you know how in case I'm being a huge dummy. Usual warning: I AM NOT RESPONSIBLE FOR ANY DATA LOSS THIS PLUGIN MAY CAUSE SO USE AT YOUR OWN RISK.

ABOUT
This plugin cleans up your sprays [working on that!], logs, demos, and amx logs every x ( default is 168 ) hours. The defaults make it so it cleans nothing so please look over the config to set it up.

INSTALLATION
Copy servercleanup.amxx to "/addons/amxmodx/plugins".
Copy servercleanup.txt to "/addons/amxmodx/data/lang".
Copy servercleanup.cfg to the root directory of your game.
Add the text servercleanup.amxx to the bottom of the "plugins.ini" file in "/addons/amxmodx/configs".
Add the text exec servercleanup.cfg to the end of your "server.cfg" file.

Once I've got this to a final version I'll get a compiled version attached by an admin.

COMMANDS
amx_srvcln_now - Runs server clean up manually.

THANKS
Thanks to the developers of AMX Mod X for adding in the functions I needed to get this to work with AMXX!

CHANGELOG

0.1 beta
- Initial release!
Attached Files
File Type: sma Get Plugin or Get Source (servercleanup.sma - 1187 views - 6.7 KB)
File Type: txt servercleanup.txt (369 Bytes, 395 views)
File Type: cfg servercleanup.cfg (1.9 KB, 372 views)

Last edited by Jamster; 08-28-2013 at 05:43.
Jamster is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-27-2013 , 10:17   Re: Server Clean Up [0.1 beta]
Reply With Quote #2

AMXX file removed, do not upload it again
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 08-27-2013 , 10:19   Re: Server Clean Up [0.1 beta]
Reply With Quote #3

I don't get it.. what does it do?

Clean the servER? :S explain it more, please.

PHP Code:

Please make sure you are running the newest snapshot of AMX Mod X from the date of this post
, or any future stable version
you must test it in a stable version, which is AMXX 1.8.2

Last edited by sami_spt; 08-27-2013 at 10:20.
sami_spt is offline
Jamster
Veteran Member
Join Date: Jun 2008
Old 08-27-2013 , 10:22   Re: Server Clean Up [0.1 beta]
Reply With Quote #4

Apologies, I have to upload it due to it using GetFileTime which is not in the stable release of AMXX, or are plugins that won't compile on the forum supplied stable compiler not allowed on AMXX plugins forums? Apologies if so. Feel free to remove if this is so.

edit: I also added the about plugin section, I knew I missed something!

Last edited by Jamster; 08-27-2013 at 10:26.
Jamster is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 08-27-2013 , 10:25   Re: Server Clean Up [0.1 beta]
Reply With Quote #5

I DIDN't say its not allowed, ( I Dunno if it is allowed or not)... but i mean

around 80% uses the stable version.. so u know...
sami_spt is offline
Jamster
Veteran Member
Join Date: Jun 2008
Old 08-27-2013 , 10:27   Re: Server Clean Up [0.1 beta]
Reply With Quote #6

I understand! It would not be possible without that function in the snapshots, unfortunately.

Last edited by Jamster; 08-27-2013 at 10:28.
Jamster is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-27-2013 , 10:39   Re: Server Clean Up [0.1 beta]
Reply With Quote #7

Quote:
Originally Posted by Jamster View Post
Apologies, I have to upload it due to it using GetFileTime which is not in the stable release of AMXX, or are plugins that won't compile on the forum supplied stable compiler not allowed on AMXX plugins forums? Apologies if so.
You are not allowed to upload the AMXX file. You are free to upload any SMA you want, just not the AMXX. If you want the AMXX file uploaded, you will need to contact an AMXX Moderator or AMXX Plugin Approver and they will post the AMXX file
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 08-27-2013 , 10:46   Re: Server Clean Up [0.1 beta]
Reply With Quote #8

Very interesting, I think this is Must Have plugin.

About "custom.hpk":
What about delete (current "custom.hpk")? And put original clean file on this place?
Phant is offline
Send a message via ICQ to Phant
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-27-2013 , 10:54   Re: Server Clean Up [0.1 beta]
Reply With Quote #9

or simple just use hpk_maxsize var
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Jamster
Veteran Member
Join Date: Jun 2008
Old 08-27-2013 , 12:33   Re: Server Clean Up [0.1 beta]
Reply With Quote #10

Quote:
Originally Posted by YamiKaitou View Post
You are not allowed to upload the AMXX file. You are free to upload any SMA you want, just not the AMXX. If you want the AMXX file uploaded, you will need to contact an AMXX Moderator or AMXX Plugin Approver and they will post the AMXX file
Got you, and thanks, apologies, I just assumed as I could on SM forums. Oops. D:

Re the cleaning, if servers ops can set the sprays to never save I suppose I could remove the function, I'll see if it's possible. Deleting custom.hpk feels a bit pointless if that's the case. I'd rather like to do it properly if I can.
Jamster 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 06:38.


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