Raised This Month: $ Target: $400
 0% 

[TF2] Power shop


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Plugin ID:
4644
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A very simple shop
    Old 05-23-2015 , 09:06   [TF2] Power shop
    Reply With Quote #1

    [TF2] Power Shop




    So... I made this plugin long time ago. I made it quickly and badly. I rewrote it a bit, and added a database system to save the purchases. The main objective of this plugin is to replace Überupgrade wich has been reported to be buggy.

    Original idea : https://forums.alliedmods.net/showpo...25&postcount=1


    Here is the list of avaible features for now :
    • Fully configurable shop items through a easy config file
    • Translations ! By the way, I need help for that.
    • Easy to configure
    • Easy to installation (drag-n-drop)
    • Unlimited ammount of items
    • Cool HUD



    Before anything, make sure you have installed :

    [TF2] TF2 Attributes

    1) Download the SMX file.
    2) Put the smx file in the PLUGINS folder.
    3) Download the translation file and put it in translations folder.
    4) Download and edit the shop configuration file to your needs. (configs/TF2_PSitems.cfg)
    Exemple of configuration (thanks to secondtimesold)
    Spoiler

    6) Navigate to the database configuration file (configs/database.cfg) and add an entry like this at the end of the file, but before the last '}' :
    Code:
            [...]
            "powershop"
    	{
    		"driver"			"default"
    		"host"			"MY HOST IP"
    		"database"			"PowerShop"
    		"user"			"MY DATABASE USER"
    		"pass"			"MY PASSWORD"
    	}
    Obviously, replace MY HOST IP by your database host's IP, MY DATABASE USER by your database's user and MY PASSWORD by your user's database password.
    7) REBOOT THE SERVER OR CHANGE THE MAP!


    sm_credits - Display the number of credits you have.
    sm_shop - Display the shop menu
    Require : Admin flag - cheats
    sm_addcredit - Add a specific ammount of credit to a player.


    A configuration file is automatically generated at the first run of this plugin. Althoug, here is a list of cvar :

    Code:
    // This file was auto-generated by SourceMod (v1.8.0.5967)
    // ConVars for plugin "TF2PowerShop.smx"
    
    
    // Configuration name in database.cfg, by default, all results are saved in the sqlite database.
    // -
    // Default: "storage-local"
    sm_tf2ps_configuration_name "powershop"
    
    // How much credit to deduct when you die.
    // -
    // Default: "5"
    // Minimum: "0.000000"
    sm_tf2ps_death_deduction "5"
    
    // How much credits to give on kill.
    // -
    // Default: "3"
    // Minimum: "0.000000"
    sm_tf2ps_kill_credits "3"
    
    // Restric the command !shop to 1 team only. (-1 no restriction, 0 RED only, 1 BLU only)
    // -
    // Default: "-1"
    // Minimum: "-1.000000"
    // Maximum: "1.000000"
    sm_tf2ps_shop_restriction "-1"
    
    // How much credits to give on team loose x 3.
    // -
    // Default: "30"
    // Minimum: "0.000000"
    sm_tf2ps_teamLooseX3_credits "30"
    
    // How much credits to give on team win.
    // -
    // Default: "10"
    // Minimum: "0.000000"
    sm_tf2ps_teamWin_credits "10"
    
    // How much credits to give on every 90 seconds.
    // -
    // Default: "10"
    // Minimum: "0.000000"
    sm_tf2ps_time_credits "10"
    
    sm_tf2ps_HUD_position_x "0.14"
    sm_tf2ps_HUD_position_y "0.90"

    Nothing, really. Just feel free to ask.


    None found yet. Produce strange things when reloading the plugin with player inside server.


    <none>


    https://github.com/Arkarr/TF2-PowerShop

    Enjoy !

    Logs :
    Spoiler
    __________________
    Want to check my plugins ?

    Last edited by Arkarr; 07-17-2019 at 18:12.
    Arkarr 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 00:56.


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