AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   TF2 Donations v1.1 (https://forums.alliedmods.net/showthread.php?t=75963)

DiscoBBQ 08-15-2008 23:13

TF2 Donations v1.1
 
5 Attachment(s)
Want to increase your server's donations?

Donations v1.1


Description:
-Easily add donators and have them recognized accross multiple servers or just on one.

-Recognition at the moment provides access to reserved slots, auto-balance blocker, coloured chat, and unbalanced team swapping.


Installation:
-Place Donations.smx in your addons/sourcemod/plugins/ folder.

-Place donation_config.txt in your addons/sourcemod/data folder.

-Configure your database.cfg accordingly, see below.


Local Database configuration (1 Server):
-Open database.cfg located in your addons/sourcemod/configs/ folder.

-For SQL-Lite (Local SQL), you will want to edit three things.

-Change the keyvalue "default_driver" from "mysql" to "sqlite".

-Change the key "default" to "storage-global".

-Change the key "storage-local" to "default".

-It will look like:
Code:

"Databases"
{
 "driver_default"  "sqlite"
 
 "storage-global"
 {
  "driver"  "default"
  "host"    "localhost"
  "database"  "sourcemod"
  "user"    "root"
  "pass"    ""
  //"timeout"  "0"
  //"port"  "0"
 }
 
 "default"
 {
  "driver"  "sqlite"
  "database"  "sourcemod-local"
 }
}


Global Database configuration (2+ Servers):
-Open database.cfg located in your addons/sourcemod/configs/ folder.

-Edit the MySQL keyvalues respectivly to your MySQL Database.

-It will look something like:
Code:

"Databases"
{
 "driver_default"  "mysql"
 
 "default"
 {
  "driver"  "default"
  "host"    "x.x.x.x"
  "database"  "sourcemod"
  "user"    "root"
  "pass"    "admin"
  //"timeout"  "0"
  //"port"  "81"
 }
 
 "storage-local"
 {
  "driver"  "sqlite"
  "database"  "sourcemod-local"
 }
}


Usage:
-Requires Admin 'Custom Level 1': sm_listdonators. This will print a list of all donators by SteamID in their console.

-Requires Admin 'Custom Level 6': sm_donator <Steam Id>. This will add a donator to the database by their Steam Id. I.e., sm_donator "STEAM_0:1:696969".

-Requires Admin 'Custom Level 6': sm_removedonator <Steam Id>. This is used the same way as sm_donator but removes a donator from the database.


Config Configuration:
-Open your donation_config.txt.

-To enable/disable team swapping by changing the keyvalue of "Swap Team" to "1" for on, and "0" for off.

-To enable/disable chat colouring by changing the keyvalue of "Coloured Chat" to "1" for on, and "0" for off.

-To set the amount of slots you want to reserve by editing the keyvalue "Reserved Slots" respectivly.

-To change the say command for team swaping, edit the keyvalue "Team Swap".

-To Change the welcome message for donators, edit the keyvalue "Welcome Message".

-Save & Exit.

-It will look something like:
Code:

"Config"
{
 
 "Donation"
 {
 
  "Swap Team"  "1"
  "Coloured Chat"  "1"
  "Reserved Slots" "2"
  "Swap Command"  "/swapteam"
  "Welcome Message" "Thank you for donating, please enjoy your privileges"
 }
}


Changelog:
v1.1
-Config File
-Coloured Chat
-Team Swap
-MySQL Connection Bug Fix

v1.0
-Release

Special Thanks:
-iO gaming community

-DJ Tsunami for SQL scripting help and helping me on my decision to make this post more masculine.

dotISO 08-16-2008 12:56

Re: Donations v1.0 by Pinkfairie
 
Nice! I've been looking for this

crazychicken 08-16-2008 20:29

Re: Donations v1.0 by Pinkfairie
 
i think coloured text would be nice

Spikeectf2 08-16-2008 22:38

Re: Donations v1.0 by Pinkfairie
 
donators not getting autobalanced. not getting kicked for being idle,donators can play restricted classes[if pyro is set to 3 max donators can bypass that]
donators can do votes,
donators may changes teams even if it would unbalance them slightly
feel free to test it on our server like you did the gore plugin we have a full donations list and would love to test any addons to the plugin.

ThatGuy 08-16-2008 22:45

Re: Donations v1.0 by Pinkfairie
 
+1 vote on mapchooser votes?

So they can count as 2 votes

DiscoBBQ 08-16-2008 23:32

Re: Donations v1.0 by Pinkfairie
 
Colored text is a really good idea, ill implement that soon. As for idle kicking, restriction bypass and +map votes, these are not default in TF2; thusforth requiring a modified version of each of those plugins. I'll put in change team too.

DDR Khat 08-17-2008 08:16

Re: Donations v1.0 by Pinkfairie
 
Would it be also rude to ask if there was a automated remove time? seeing as you seem to make it require a sql database, could you get the plugin to check every-so-often (defineable by a config, I'd hope) and disable a donator ? (Not remove - as they might "redonate")

ThatGuy 08-17-2008 09:53

Re: Donations v1.0 by Pinkfairie
 
Invuln/godmode during bonus round time so they can't get humiliated? (Stole the idea from voogru)

DiscoBBQ 08-17-2008 13:01

Re: Donations v1.0 by Pinkfairie
 
Going to add teamswap, colored chat, auto-pruning, and invuln when round over. Good ideas guys

MoggieX 08-17-2008 15:35

Re: Donations v1.0 by Pinkfairie
 
ello Pinkfairie I have some code that will give sponsors fast respawns, however IF the map is pl_goldrush OR cp_dustbowl it disables the fast respawns, keeping those maps as fair as possible. If you want it of course ;)

Matt


All times are GMT -4. The time now is 12:00.

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