Monthly Target: $400 Donations: $259
 64% 

TF2 Donations v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Plugin ID:
507
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Unapprover:
    Plugin Description:
    Enables benefits for donators
    Servers with this Plugin:
    10 
    Reason for Unapproving:
    No longer maintained
    Old 08-15-2008 , 23:13   TF2 Donations v1.1
    Reply With Quote #1

    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (Donation.sp - 1664 views - 11.3 KB)
    File Type: smx Donation.smx (5.9 KB, 518 views)
    File Type: txt donation_config.txt (222 Bytes, 897 views)
    __________________
    "Every man is guilty of all the good he did not do"

    Last edited by DiscoBBQ; 06-03-2009 at 16:44. Reason: Update
    DiscoBBQ is offline
    dotISO
    Member
    Join Date: May 2008
    Old 08-16-2008 , 12:56   Re: Donations v1.0 by Pinkfairie
    Reply With Quote #2

    Nice! I've been looking for this
    dotISO is offline
    crazychicken
    Senior Member
    Join Date: Mar 2008
    Old 08-16-2008 , 20:29   Re: Donations v1.0 by Pinkfairie
    Reply With Quote #3

    i think coloured text would be nice
    __________________
    crazychicken is offline
    Spikeectf2
    Member
    Join Date: Apr 2008
    Old 08-16-2008 , 22:38   Re: Donations v1.0 by Pinkfairie
    Reply With Quote #4

    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.
    Spikeectf2 is offline
    ThatGuy
    Senior Member
    Join Date: Nov 2007
    Old 08-16-2008 , 22:45   Re: Donations v1.0 by Pinkfairie
    Reply With Quote #5

    +1 vote on mapchooser votes?

    So they can count as 2 votes
    __________________
    ThatGuy is offline
    DiscoBBQ
    Veteran Member
    Join Date: Jan 2005
    Location: Clemson, South Carolina
    Old 08-16-2008 , 23:32   Re: Donations v1.0 by Pinkfairie
    Reply With Quote #6

    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.
    __________________
    "Every man is guilty of all the good he did not do"
    DiscoBBQ is offline
    DDR Khat
    SourceMod Donor
    Join Date: Feb 2006
    Old 08-17-2008 , 08:16   Re: Donations v1.0 by Pinkfairie
    Reply With Quote #7

    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")
    __________________
    Nothing but a whisper in the wind~~
    DDR Khat is offline
    ThatGuy
    Senior Member
    Join Date: Nov 2007
    Old 08-17-2008 , 09:53   Re: Donations v1.0 by Pinkfairie
    Reply With Quote #8

    Invuln/godmode during bonus round time so they can't get humiliated? (Stole the idea from voogru)
    __________________
    ThatGuy is offline
    DiscoBBQ
    Veteran Member
    Join Date: Jan 2005
    Location: Clemson, South Carolina
    Old 08-17-2008 , 13:01   Re: Donations v1.0 by Pinkfairie
    Reply With Quote #9

    Going to add teamswap, colored chat, auto-pruning, and invuln when round over. Good ideas guys
    __________________
    "Every man is guilty of all the good he did not do"

    Last edited by DiscoBBQ; 08-17-2008 at 19:12.
    DiscoBBQ is offline
    MoggieX
    Veteran Member
    Join Date: Aug 2007
    Location: n00bville
    Old 08-17-2008 , 15:35   Re: Donations v1.0 by Pinkfairie
    Reply With Quote #10

    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
    __________________
    MoggieX is offline
    Send a message via Skype™ to MoggieX
    Reply


    Thread Tools
    Display Modes

    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 10:27.


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