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

Server Anit-Crash


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Day of Defeat        Category:   Server Management        Approver:   EKS (166)
schreck
Junior Member
Join Date: Jul 2005
Location: TX
Old 10-20-2005 , 02:54   Server Anit-Crash
Reply With Quote #1

For those who don't know, DoD contains a problem when a player reaches 500 flag captures, or a player reaches 200 kills. What happens you may ask...The server crashes. We got tired of people crashing the server from 200 kills, so I decided to create this plugin.

The way this plugin works is on a capture, it will look at that players caps. If the caps are greater than or equal to 495, then it will reset the caps for that player to 0.

Likewise, on a kill, it looks at the killer's score. If the killer has 195 or more kills, then it will reset the kills for the killer to 0.

If there are any "better" ways of doing this, please let me know, as this is my first released plugin. I have another in progress, but i figured i would release this as it is very useful in DoD.

This may also be handy to make a closer, better 24/7 DoD server since you dont have to worry about these crashes.

PS
If there is another one of these out there, sorry. I looked all over the forums, but couldn't find one.
Code:
Changelog:

v1.1a
-Fixed plugin showing unknown
^^messed this up updating to 1.1

v1.1
-Removed plugin_modules()

v1.0
-Initial Release
Attached Files
File Type: sma Get Plugin or Get Source (sac.sma - 4392 views - 4.4 KB)
__________________
The only reason im a newbie here is cause i hang out in #amxmodx instead
schreck is offline
Send a message via AIM to schreck Send a message via MSN to schreck Send a message via Yahoo to schreck
DarlD
Senior Member
Join Date: Aug 2004
Old 10-20-2005 , 03:08  
Reply With Quote #2

Great work schreck looking forward to your next plugin!
__________________
DarlD is offline
Send a message via MSN to DarlD
dannyowan
Senior Member
Join Date: Mar 2005
Old 10-20-2005 , 10:24  
Reply With Quote #3

That why always crash , thanks body !
dannyowan is offline
dannyowan
Senior Member
Join Date: Mar 2005
Old 10-21-2005 , 12:33  
Reply With Quote #4

schreck

The plugins show out " Unknow " in amxmodmenu's plugins list

but it still can on/off it ..( means still work?)
dannyowan is offline
colby
Senior Member
Join Date: Jun 2005
Location: NC
Old 10-21-2005 , 16:51  
Reply With Quote #5

He didn't register the plugin right, which is why it is showing up as "Unknown". Try adding this:

Code:
public plugin_init() {     register_plugin("Server Anti-Crash", "1.1", "Schreck") }

And take out this:
Code:
new PLUGIN[]="Server Anti-Crash" new AUTHOR[]="Schreck" new VERSION[]="1.1"

(Not exactly sure what you were thinking here)
colby is offline
Send a message via AIM to colby
schreck
Junior Member
Join Date: Jul 2005
Location: TX
Old 10-22-2005 , 05:07  
Reply With Quote #6

actually, i erased the wrong part of the code. when i took out plugin_modules, i took out plugin_init instead...oops.
New version uploaded.
__________________
The only reason im a newbie here is cause i hang out in #amxmodx instead
schreck is offline
Send a message via AIM to schreck Send a message via MSN to schreck Send a message via Yahoo to schreck
dannyowan
Senior Member
Join Date: Mar 2005
Old 10-23-2005 , 10:32  
Reply With Quote #7

good job!

pust it on the top!
thanks u guys
dannyowan is offline
[UCE]pluTONIum
Junior Member
Join Date: Jun 2004
Old 10-23-2005 , 11:58  
Reply With Quote #8

great plugin, dude

i'll install it immediately and hope our server won't crash that often in the future ...

btw: didn't even know of that bug but it's an explaination for our server crashes in the past
__________________
Serveradmin of the Clanforums Network
[UCE]pluTONIum is offline
schreck
Junior Member
Join Date: Jul 2005
Location: TX
Old 10-23-2005 , 17:28  
Reply With Quote #9

the Kills we found out cause alot of our members will get 200+ kills in 120 or less mins. The flag caps we found out about from some ppl XP whoring in our WC3FT server. So then i made a way to stop it, hence where i am now.
__________________
The only reason im a newbie here is cause i hang out in #amxmodx instead
schreck is offline
Send a message via AIM to schreck Send a message via MSN to schreck Send a message via Yahoo to schreck
forbiddenct
Junior Member
Join Date: Oct 2005
Location: tampines
Old 10-31-2005 , 00:51  
Reply With Quote #10

Good Job.
I am facing damn lot of crashnig of my server
thx to ur plugins
__________________
-=][NightKids][=- UWC3 Server
www.nightkids.bravehost.com
forbiddenct is offline
Send a message via MSN to forbiddenct
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:14.


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