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

[TF2] Jump Menu (v1.09, 26-10-2013) Now with database support!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
floube
SourceMod Donor
Join Date: Jan 2013
Location: Austria
Plugin ID:
3449
Plugin Version:
1.09
Plugin Category:
All
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    Features for TF2 Jumping (+ Database)
    Old 01-04-2013 , 15:36   [TF2] Jump Menu (v1.09, 26-10-2013) Now with database support!
    Reply With Quote #1

    Jump Menu (v1.09, 26-10-2013) Now with database support!

    Description:
    Jump Menu is a simple plugin, which provides a list of useful commands for TF2 Jumping and it supports saving player data in a database.

    Features:
    • HP-Regen
    • Ammo-Regen (+ Engi Metal & Ullapool Caber)
    • Saving your location
    • Teleporting you to the saved location
    • Reseting your saved location
    • Restart from the beginning
    • Able to save players on database
    • Admin Commands: !goto, !send

    ConVars:
    • sm_jmenu_version "1.09" // Jump Menu Plugin Version
    • sm_jmenu_enabled "1" // 0 = Jump Menu Plugin disabled; 1 = Jump Menu Plugin enabled
    • sm_jmenu_database "0" // 0 = Database support disabled; 1 = Database support enabled
    • sm_jmenu_ammo "0.1" // 0 = Ammo-Regen disabled; X = Fill the players ammo every X seconds
    • sm_jmenu_caber "1.0" // 0 = Caber-Reset disabled; X = Reset the Caber every X seconds
    • sm_jmenu_health "0.1" // 0 = HP-Regen disabled; X = Fill the players HP every X seconds
    • sm_jmenu_health_mode "0" // 0 = Heal to maximum HP (class-specific); X = Heal up to X HP
    • sm_jmenu_save "0" // 0 = Save-Teleport-Feature disabled; 1 = Save-Teleport-Feature enabled
    • sm_jmenu_announce "120.0" // 0 = Announcements disabled; X = Fire announcement every X seconds
    • sm_jmenu_noblock "1" // 0 = Players block each other; 1 = Players don't block each others
    • sm_jmenu_sounds "1" // 0 = Sounds disabled; 1 = Sounds enabled (regenerate, hurt, ammo pickup)

    Commands:
    • !hp, !regen - Regenerates your HP.
    • !ammo - Regenerates your ammo.
    • !superman - Makes you strong like superman.
    • !s, !save, !jm_saveloc - Saves your current location.
    • !t, !tp, !tele, !teleport, !jm_teleport - Teleports you to your saved location.
    • !restart - Sends you back to the beginning and deletes your save.
    • !reset - Sends you back to the beginning without deleting your save.
    • !jmenu - Opens the Jump Menu.
    • !jsettings - Shows your current jump settings.
    • !goto <target> - [Admin only] Teleports you to a player.
    • !send <target> <destination target> - [Admin only] Teleports a player to another player.

    Supported Weapons:
    • All Rocket Launchers - except 'The Begger's Bazooka'
    • All Shotguns
    • All Stickybomb Launchers
    • All Flamethrowers
    • Force-A-Nature

    Installation instructions:
    Put the plugin (jumpmenu.smx) in your server's plugins folder: addons/sourcemod/plugins

    Database support instructions (ONLY TESTED WITH MYSQL):
    1. Create a database
    2. Add a config to databases.cfg found in addons/sourcemod/configs:
      Code:
      "jumpmenu"
      {
      	"driver"			"default" // the driver (default = mysql)
      	"host"				"127.0.0.1" // the host (use 127.0.0.1 instead of localhost)
      	"database"			"jump_test" // the database's name
      	"user"				"root" // the user
      	"pass"				"***" // the user's password
      }
    3. Execute this (replace with your settings):
      Code:
      GRANT SELECT, INSERT, UPDATE, DELETE ON jump_test.* TO 'root'@'127.0.0.1';
    4. Enable database support by sm_jmenu_database "1"
    5. ...
    6. Profit!

    ToDo:
    • Database support... DONE!

    Changelog:
    Code:
    26-10-2013 (v1.09)
    
    * Rewrote Ammo-Regen (only supported weps get refilled).
    * Removed the timer to get teleported after spawn (players get teleported immediately now).
    
    23-10-2013 (v1.08)
    
    * Added sm_jmenu_sounds cvar to enable/disable sounds (regenerate, hurt, ammo pickup).
    * Fixed sm_jmenu_announce "0".
    
    18-10-2013 (v1.07)
    
    * Added sm_jmenu_noblock cvar to enable/disable blocking players.
    * Added !goto command.
    * Added !send command.
    
    17-10-2013 (v1.06)
    
    * Fixed Save-Teleport-Feature for database users.
    * Players are auto-teleported after being spawned.
    * Shows box with the current settings after being spawned.
    
    17-10-2013 (v1.05a)
    
    * Fixed Superman-Feature not saving correctly (database).
    
    16-10-2013 (v1.05)
    
    * Added database support.
    * Added Metal-Regen (Engineer) within Ammo-Regen.
    * Added !superman command.
    
    11-10-2013 (v1.04)
    
    * Rewrote everything from scratch.
    * Combined/removed some cvars.
    * Added !restart command.
    * Added Jump Mode commands (!jm_saveloc, !jm_teleport).
    * Each class and team has it's own save location.
    
    30-03-2013 (v1.03)
    
    * Added advertisement: "Type !jmenu or /jmenu to open the Jump Menu."
    
    23-03-2013 (v1.02a)
    
    * Fixed error. (Entity -1 is invalid)
    
    07-02-2013 (v1.02)
    
    * Fixed some minor bugs. (killing yourself with HP-Boost)
    * Some code clean-up.
    
    03-02-2013 (v1.01)
    
    * Added support for Ullapool Caber.
    * Added sm_jumpmenu_health_mode (0 - Heal to maximum HP (class-specific), 1 - Heal up to amout which is set by sm_jumpmenu_health_amount)
    * Saved locations will reset after switching team (to prevent fighting).
    
    04-01-2013 (v1.0)
    
    * Initial release.
    Known Bugs:
    • none

    If you find bugs or have ideas/suggestions don't be afraid to post them.
    Attached Files
    File Type: sp Get Plugin or Get Source (jumpmenu.sp - 2824 views - 63.7 KB)

    Last edited by floube; 10-26-2013 at 09:05.
    floube 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 16:14.


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