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

[TF2] Premium Members & Web Interface [v1.2]


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Plugin ID:
1203
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unapprover:
    Reason for Unapproving:
    See: http://forums.alliedmods.net/showpost.php?p=1092595&postcount=411
    Old 10-04-2009 , 17:17   [TF2] Premium Members & Web Interface [v1.2]
    #1




    Quote:
    Premium Members is a plugin for Team Fortress 2 that rewards donators for donating, forum members for posting, group members for filling up servers, just for fun; whatever you would like! This can help encourage visitors of your server to donate to you or your group, and make some money in return for special in-game privileges. In addition to using this plugin, you can also make other plugins (such as the famous Roll the Dice) work for only Premium Members on your server(s). The guide to do this is in the instructions section of this post.

    Quote:
    COLORS.INC

    Quote:
    To make someone a Premium Member is simple. All you need is there SteamID. Once you have that, add a new admin to your admins.cfg (or admins_simple.ini) with the admin flag o.

    To make a command available to only Premium Members, open up tf/addons/sourcemod/configs/admin_overrides.cfg. Make a new line and add:

    HTML Code:
    "commandname"              "o"
    For example, to make sm_laserbeams a Premium Member-only command, it would look like this:

    HTML Code:
    "sm_laserbeams"              "o"
    WEB INTERFACE
    Click here for a demo

    Adding a Donation Page
    This is the most important step. Just open up buy.html, scroll through until you see
    PHP Code:
    <!--CHANGE THE LINK BELOW TO YOUR PAYPAL/DONATE PAGE-->
    <
    a href="#"><img  src="images/donate.png"></a
    Change the # to the URL of your Paypal page or a donation page on your website if you already have one.

    Adding Servers
    To add a new server to the servers.html page, just edit this line:
    PHP Code:
    <br><strong>Server Name #1</strong> - <a  href="steam://connect/127.0.0.1:27015">CONNECT</a>
    <br>127.0.0.1:27015 
    Change the Server Name to the name of your server. Change both IP addresses to the address of that server. Unfortunately, there can only be a maximum of 4 servers, although that number will be expanded in future updates

    Quote:
    !premium
    If the client is not a Premium Member, it will display the features menu to them. If they are a Premium Member, it will list all usable commands for Premium Members (discluding the custom ones you've added).

    !features
    Displays a list of features that you can get by having a Premium Member account.

    !fov <20-170>
    Allows players to change their Field of View. It is limited to a minimum of 20 and a maximum of 170, because anything other results in a very buggy screen.

    !dark
    Turns the player dark. Using the command when you are already dark returns you to normal color or the color that is defined by the convar premium_color.

    !glow
    Gives the player a blue teleporter-effect glow. This effect lasts 5 minutes before it wears off.

    !swapteam
    Switches the player's team to the opposite one.

    Quote:
    premium_enable <1>
    Enables the plugin. Turning it off disables all effects.

    premium_all <0>
    Gives Premium to every player that joins the game.

    premium_advertisement_welcome <1>
    Enables the welcome advertisement.

    premium_advertisement_features <1>
    Enables the features advertisement.

    premium_advertisement_features_interval <300>
    Time in seconds between each features advertisement.

    premium_speed <1>
    Enables faster movement speed (400 Hammer units/sec), Scout speed.

    premium_health <150>
    Amount of health to give on spawn. Set to 0 to disable.

    premium_ammo <1>
    Enables the extra 2 rockets and grenades for the Soldier and Demoman.

    premium_cloak <1>
    Enables infinite cloak for Spies.

    premium_cloak_regen <1>
    Enables health regeneration for Spies when they are cloaked (2.5 health/sec).

    premium_kill_bonus <50>
    Amount of health to boost when a player is killed. Set to 0 to disable.

    premium_color <0>
    The color that the Premium Members spawn as (see the Colors section).

    premium_fov_enable <1>
    Enables the usage of the command !premium_fov.

    premium_dark_enable <1>
    Enables the usage of the command !dark.

    premium_glow_enable <1>
    Enables the usage of the command !glow.

    premium_sandman <25>
    Amount of Sandman baseballs to spawn with as a Scout.

    premium_jarate <10>
    Amount of Jarates to spawn with as a Sniper.

    premium_ubercharge_amount <25>
    Percentage of Ubercharge for Medics to spawn with (25 = 25%).

    premium_instant_respawn <1>
    Instantly respawn Premium Members when they are killed.

    premium_swapteam_enable <1>
    Enables the usage of the command !swapteam

    premium_fov_default <1>
    The default field of view upon joining the server.

    Quote:
    0 - None
    1 - Green
    2 - Red
    3 - Blue
    4 - Yellow
    5 - Cyan
    6 - Purple

    Quote:
    - This is not a good plugin for admins who dislike certain players having advantages over others.
    - Special thanks to Damizean for coding help.
    - This plugin is still under development.
    - Please do not sell or claim this plugin as your own.
    - Feel free to alter the plugin to your liking; leave credit.
    - Choppy movement occurs when wielding the Equalizer; still working on this one.

    Quote:
    -----------------------
    NORMAL - UNFINISHED
    BOLD - COMPLETED
    -----------------------
    Bunnyhop
    Faster movement speed
    Extra Scout jumps
    Increased firerate
    Higher rocket jump
    Spy Radar
    Health bonus
    Infinite Engineer metal
    Infinite ammo
    2 extra rockets & grenades
    Instant Sniper Rifle charge
    Perfect bow aim
    Longer Ubercharge
    Shorter Ubercharge build time
    Extra Ubercharge on spawn
    10 Jarates on spawn
    25 Sandman balls on spawn

    Instant teleporters
    Infinite cloak
    Regenerating health when cloaked

    Camping Sniper cloak
    Longer Bonk! Atomic Punch time
    Ability to switch teams
    +50 HP with each kill

    Concussion grenades
    Custom FOV

    -----------------------
    Read from a config with SteamIDs
    Display online Premium Members with !premiums (maybe?)
    Make the features menu and Premium commands menu use the cvars to determine what to show
    Fix Demoman charge speed and Equalizer movement speed
    Make dark remember between lives
    Permanent glow cvar
    Fix weird FOV/sensitivity bug
    Fix Sandman + Jarate cvar default values

    Premium Account Trials

    Quote:
    • Version 1.2 - [3-13-10]
      -Added a cooldown to the glow command
      -Added convar premium_all
      -Removed some unnecessary code
      -Minor edits to the translations
      -Fixed slow charging speed with the Chargin' Targe
      -Fixed invalid client errors
      -Fixed KillTimer errors
      -Fixed handles not being closed after a client disconnects


    • Version 1.1 - [1-15-10]
      -Added convar premium_swapteam_enable
      -Added convar premium_fov_default
      -Added error messages when a disabled feature is used
      -Removed extra ammo reload
      -Chat messages now use team colors
      -Menu items are now controlled by convars
      -FOV now defaults to 120
      -Lowered the rate of health regeneration while cloaked
      -Fixed premium_fov printing to everyone
      -Fixed respawning when shot while using the Dead Ringer
      -Fixed premium_swapteam using the glow convar
      -Drastically improved the glow effects


    • Version 1.0.1 - [1-1-10]
      -Changed several convars from enable/disable to amount specification
      -Fixed disabling premium_ammo still giving extra ammo
      -Convar premium_color is now 0 by default
      -Fixed premium_fov not returning an error when formatted improperly


    • Version 1.0 - [12-25-09]
      -Rewrote the plugin from scratch (see new commands & convars)
      -Added a web interface
      -Added command premium_swapteam
      -Added convar premium_ubercharge_amount
      -Added convar premium_instant_respawn
      -Added convar premium_advertisement_features_interval
      -Added support for enabling/disabling features without a map change
      -Fixed handles not closing correctly
      -Added a game mod check to detect if the game is TF2
      -Fixed logging non-Premium clients as Premiums on connect
      -Fixed Soldiers and Demoman not getting back the extra ammo after using it
      -Fixed Spies regenerating health too fast when cloaked


    • Version 0.7.1 - [12-02-09]
      -Fixed premium connection log showing for non-premium members
      -Fixed public cvar missing the FCVAR_NOTIFY flag
      -Fixed health boost on kill boosting your health over 512
      -Removed broken code on client disconnect
      -Removed plugin credits


    • Version 0.7 - [11-9-09]
      -Added bonus Jarates on spawn
      -Added bonus Sandman balls on spawn
      -Added convar premium_sandman_balls
      -Added convar premium_jarate
      -Cleaned up some more code


    • Version 0.6.1 - [11-8-09]
      -Fixed most features not working


    • Version 0.6 - [11-5-09]
      -Added more support for changing cvars/enabling/disabling in-game
      -Attempted to close handles on disconnect
      -Added support for translations
      -Added plugin credits if premium_welcome is enabled
      -Expanded the convar descriptions
      -Fixed an error message not being displayed when premium_dark is disabled
      -Shortened delay for welcome messages
      -Added some server logging
      -FOV is default 100 for Premium Members
      -Plugin now required colors.inc


    • Version 0.5.1 - [10-24-09]
      -Using dark displays a message to everyone that the player has enabled/disabled dark on themselves
      -Added !glow
      -Added premium_allowglow
      -Edited the feature list and commands list


    • Version 0.5 - [10-17-09]
      -Rewrote most of the code
      -Removed !glow
      -Changed a lot of the functionality
      -Plugin is no longer based on "boosts"
      -Added infinite spy cloak
      -Added spy cloak health regeneration
      -Added premium_fov
      -Added health buff on kill
      -!premium command displays usable commands for Premiums
      -Added a welcome message
      -Changed how colors work to fix some bugs
      -Removed !normal. Dark can be removed by using !dark when already dark
      -Added comments to the source


    • Version 0.4 - [10-06-09]
      -Fixed auto mode using the wrong admin flag
      -Feature menu now draws a panel
      -Using the !premium without the correct flag displays the feature menu and error
      -Changed !premiumfeatures to !features
      -Removed cvar premium_featurelist


    • Version 0.3 - [10-05-09]
      -Fixed "SODIER" typo in feature list
      -Fixed error sound not playing in some cases
      -Fixed error sound playing when premium_sound was 0
      -Added particle effects to Premium Boosts
      -Added command !glow
      -Added command !dark
      -Added command !normal
      -Added convar premium_glow
      -Added convar premium_dark


    • Version 0.2.1 - [10-04-09]
      -Fixed increased speed staying after respawn
      -Updated the feature list command
      -Added cvar premium_featurelist


    • Version 0.2 - [10-04-09]
      -Fixed auto mode not replenishing Spy cloak
      -Fixed auto mode not giving Medics ammo
      -Fixed sniper rifle being glitched
      -Added cvar premium_medic_uber
      -Added cvar premium_soldier_crit


    • Version 0.1 - [10-04-09]
      -Initial release
    This plugin is open to feedback and suggestions.
    Lines of code: 749
    Support Level: EVERYTHING

    Last edited by psychonic; 03-23-2010 at 10:17. Reason: Restored post text
    noodleboy347 is offline
    Chris-_-
    SourceMod Donor
    Join Date: Oct 2008
    Old 10-04-2009 , 17:23   Re: [TF2] Premium Member Abilities
    #2

    Looks cool.

    I'm sure this will get popular.

    Last edited by Chris-_-; 10-04-2009 at 17:27. Reason: OP fixed it :D
    Chris-_- is offline
    Greg_Sucks
    Member
    Join Date: Jul 2009
    Old 10-04-2009 , 18:27   Re: [TF2] Premium Member Abilities
    #3

    I have mixed feelings about this plugin. First off is that this will get super popular, and everyone will kill me with their 10 thousand extra health. The other thought is that I'm curious as to how you did the extra ammo thing. Time to check out your source and find out.
    Greg_Sucks is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 10-04-2009 , 18:59   Re: [TF2] Premium Member Abilities
    #4

    Quote:
    Originally Posted by Greg_Sucks View Post
    I have mixed feelings about this plugin. First off is that this will get super popular, and everyone will kill me with their 10 thousand extra health. The other thought is that I'm curious as to how you did the extra ammo thing. Time to check out your source and find out.
    My intent for this was for donators to get little bonuses... not major things like 19328948 health and infinite ammo. It's the server owner's choice, so, yeah. If they want to make their servers have superplayers then fine, it just might not be as good of a server.
    noodleboy347 is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 10-04-2009 , 20:42   Re: [TF2] Premium Member Abilities
    #5

    Glitch: When as a sniper, You can shoot unlimited times and it doesn't kill anybody. Also, you can move outside of spawn after you activated it. The last thing is that you can move really fast while aiming with a sniper.
    Drixevel is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 10-04-2009 , 20:59   Re: [TF2] Premium Member Abilities
    #6

    Quote:
    Originally Posted by r3dw3r3w0lf View Post
    Glitch: When as a sniper, You can shoot unlimited times and it doesn't kill anybody. Also, you can move outside of spawn after you activated it. The last thing is that you can move really fast while aiming with a sniper.
    Yeah, the same thing happened with the Heavy, I had to disable him from getting more ammo (same with the Pyro). I'll go fix that now.
    noodleboy347 is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 10-04-2009 , 21:08   Re: [TF2] Premium Member Abilities
    #7

    thx u
    Drixevel is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 10-04-2009 , 21:19   Re: [TF2] Premium Member Abilities
    #8

    New version up.
    Quote:
    Version 0.2 - [10-4-09]
    -Fixed auto mode not replenishing Spy cloak
    -Fixed auto mode not giving Medics ammo
    -Fixed sniper rifle being glitched
    -Added cvar premium_medic_uber
    -Added cvar premium_soldier_crit
    noodleboy347 is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 10-04-2009 , 21:28   Re: [TF2] Premium Member Abilities
    #9

    WOOOOO ROX DA FIXES! YEAAAAAAAAAH!
    Drixevel is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 10-04-2009 , 22:10   Re: [TF2] Premium Member Abilities
    #10

    The only bugs now are the moving at the beginning and color. I set it to 2 for Red but their still the same.
    Drixevel is offline
    Closed Thread



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


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