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

TF2 Donations v1.1


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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:
    Servers with this Plugin:
     
    Plugin Description:
    Enables benefits for donators
    Unapprover:
    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 - 2536 views - 11.3 KB)
    File Type: smx Donation.smx (5.9 KB, 1033 views)
    File Type: txt donation_config.txt (222 Bytes, 1421 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
     



    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 21:39.


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