AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Track server score (valve like) (https://forums.alliedmods.net/showthread.php?t=97155)

Gachl 07-13-2009 06:01

[ANY] Track server score (valve like)
 
1 Attachment(s)
Server score tracker
Version 0.1.0 (beta)
Support level: Support everything

Description

VALVe is blacklisting servers with a bad server score. Many hosters are frightened their server could be delisted. If a server is delisted ALL servers on the IP of the delisted server are delisted, so you don't want to have a server delisted. This plugin keeps track of your VALVe score (approximate) so you know just about how healthy your server is.
VALVe's rules are:
  • New servers start with a score of 0 points
  • Each time a player connects to a server, it loses 15 points (only once per day and per user)
  • For each minute the player stays on the server, it earns 1 point (up to a max of 45 points per player)
Source: http://www.teamfortress.com/post.php?id=2338

I released this plugin on request, but it's hard to test, so I ask you to help me testing it. Let it run a few days on your server and report all bugs! Thank you!
If the plugin is final I will create a php based auto generated image that shows a line of your server score (last 10 days with highest and lowest).

Installation

Copy the files to these locations:
Code:

tf/addons/sourcemod/plugins/scoretracker.smx
This plugin uses default as database handle, if you want to use an other database change line 4 #define DBNAME "yourdesireddb"

This plugin is BETA so please report ANY BUG that appear.

Usage

CVars
Quote:

  • sm_scoretracker_prefix
    The table prefix
  • sm_scoretracker_version
    The plugin version

Commands
Quote:

  • sm_serverscore
    Print the score of the last few days in your console.

If you like this plugin please give me +Karma.
Also rate this thread http://codefreak.net/~daniel/apps/ha.../excellent.png
Thanks!

Todo
Stroked means done.
  • Add table prefix

Changelog

Code:

v0.0.1 2009/07/13
+        Plugin created.
v0.0.2 2009/07/13
*        Fixed players won't written to db.
v0.0.7 2009/07/13
*        No negative values would be possible
&        Authors comment: Threaded sql is a bitch!
v0.1.0 2009/07/23
+        Added table prefixes

Please report bugs here, I'll try to fix them as soon as possible.

alinayg 07-13-2009 07:20

Re: [ANY] Track server score (valve like)
 
Wow that really sucks that they are delisting a lot of servers, I'll be sure to add this one to my server straight away.

Also someone might want to make a plugin, that asks the player to reconnect after 45min so that you can keep your scores healthy. Against people that could grief your server by connecting and disconnecting a lot.

That just made me think of another plugin, to auto ban anyone who does that more then 3 times?

Gachl 07-13-2009 07:31

Re: [ANY] Track server score (valve like)
 
That wouldn't be necessary, because a player can only lower the servers score (-15) once in 24 hours, so if a player reconnects 5 times in a short time, you don't lose 75 points, you'll lose only once 15 points and then you gain points with this player (even after he reconnected!)

alinayg 07-13-2009 07:33

Re: [ANY] Track server score (valve like)
 
Ahh, alright then, thanks for clearing that up.

Also it seems that the vbcompiler is down on sourcemod.com.

Gachl 07-13-2009 07:39

Re: [ANY] Track server score (valve like)
 
Oh right, sourcemod.net is down and alliedmods.net is fcking slow at the moment. I'll upload a compiled version while sm.net is down!

alinayg 07-13-2009 07:49

Re: [ANY] Track server score (valve like)
 
Note to self: Download full install for sourcemod.

I just want to get this going and start testing it!

Does it always go down at this time?

Gachl 07-13-2009 07:55

Re: [ANY] Track server score (valve like)
 
No, seems like dns isn't working right (maybe nameservers down, maybe apache fails, who knows). I uploaded a compiled version, so you can use it.

Gachl 07-13-2009 09:55

Re: [ANY] Track server score (valve like)
 
It's up again, removed the precompiled version.

Gachl 07-13-2009 10:48

Re: [ANY] Track server score (valve like)
 
New version up
Code:

v0.0.2 2009/07/13
*        Fixed players won't written to db.


Gachl 07-13-2009 11:58

Re: [ANY] Track server score (valve like)
 
New version up
Code:

v0.0.7 2009/07/13
*        No negative values would be possible
&        Authors comment: Threaded sql is a bitch!



All times are GMT -4. The time now is 19:35.

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