Raised This Month: $32 Target: $400
 8% 

Healme Plugin for subscribers!


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Shango
Junior Member
Join Date: Oct 2008
Location: Britain
Plugin ID:
716
Plugin Version:
1.00
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Very similar to the dods medic plugin, this plugin gives the player a certain amount of health when you type /healme, but ONLY if they have the Subscriber flag!
    Old 01-09-2009 , 16:56   Healme Plugin for subscribers!
    Reply With Quote #1

    This is intended so that it only gives to people with the Subscriber Flag, meaning that if people subscribe or are admin etc, they get the healing benefit in game!

    There are multiple Cvars enabling you to change the maximum health they are allowed to have to use it, the amount of health to give, if it is enabled or disabled, and how many times per LIFE they can use it!


    Cvarlist (default value):

    sm_health_max 450 <Maximum Health left to be able to use /healme>

    sm_health_give 35 <Amount of health to give when /healme is used>

    sm_hmenabled 1 <If the plugin is enabled or not>

    sm_hmamount 1 <How many times a player can use the /healme
    command in one life>

    EDIT -
    Changed some things so now !healme should be fine and not show text to everyone in the server, just the client, i just changed all "PrintToChatAll"'s to "PrintToChat(client," so yay! :D

    Version Log -


    0.8 - Test version, Printed Amount of uses left, health given etc to all for testing, was not released.
    0.9 - First version submitted to Allied Modders, had one minor mistake and "PrintToChatAll" instead of "PrintToChat(client"
    * so people were advised to use /healme instead of !healme.
    1.0 - Current version, uses PrintToChat(client,) so that no chat spam





    This Plugin has only been tested in Team Fortress 2, i have not had time to test it for other games as of yet, if anyone could give feedback on games such as L4D this would be great.
    Attached Files
    File Type: sp Get Plugin or Get Source (healmeplugin.sp - 1535 views - 3.5 KB)
    File Type: smx healmeplugin.smx (2.9 KB, 506 views)
    __________________
    "Jees I'm bored, let's learn how to code for Sourcemod"
    STOP!
    MIND HURTING AHEAD
    "crap"

    Last edited by asherkin; 05-15-2020 at 11:39.
    Shango is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 01-09-2009 , 17:19   Re: Heal me Plugin
    Reply With Quote #2

    Instead of checking the flags during the function call, you could just register it as an admin command that requires that flag.

    Also, your pictures didn't work.
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    Chris-_-
    SourceMod Donor
    Join Date: Oct 2008
    Old 01-09-2009 , 18:18   Re: Heal me Plugin
    Reply With Quote #3

    Im still looking for some sort of donation plugin, with swapme, health, ammo and color chat ++ . That's prolly a highly requested plugin, but no one has asked lol , and i belive the one in "Unnaproved" doesnt quite work.
    Chris-_- is offline
    Shango
    Junior Member
    Join Date: Oct 2008
    Location: Britain
    Old 01-09-2009 , 18:44   Re: Heal me Plugin
    Reply With Quote #4

    Quote:
    Originally Posted by Lebson506th View Post
    Instead of checking the flags during the function call, you could just register it as an admin command that requires that flag.

    Also, your pictures didn't work.
    fixed thanks


    Quote:
    Originally Posted by Chris-_- View Post
    Im still looking for some sort of donation plugin, with swapme, health, ammo and color chat ++ . That's prolly a highly requested plugin, but no one has asked lol , and i belive the one in "Unnaproved" doesnt quite work.

    Well, if anyone reading this is working towards something like this they are free to use as much of my code as they like as long as they reference me if they use a lot of it.
    __________________
    "Jees I'm bored, let's learn how to code for Sourcemod"
    STOP!
    MIND HURTING AHEAD
    "crap"
    Shango is offline
    Liam
    SourceMod Developer
    Join Date: Jan 2008
    Location: Atlanta, GA
    Old 01-10-2009 , 20:42   Re: Heal me Plugin
    Reply With Quote #5

    Only problem I see is this:

    RegConsoleCmd("sm_hmheal",Command_Heal,"Gives a set amount of health to a player");

    according to your directions, it should be:

    RegConsoleCmd("sm_healme",Command_Heal,"Gives a set amount of health to a player");

    If you can fix that we'll get it approved.
    __________________
    Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

    Weapon Restrictions w/ Warmup
    High Ping Kicker - Lite Edition
    AFK Manager
    Liam is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 01-10-2009 , 21:46   Re: Heal me Plugin
    Reply With Quote #6

    Also, what i was suggesting if you are going to require the reservation flag, is to change it to this:

    RegAdminCmd("sm_healme",Command_Heal,ADMFLAG_ RESERVATION,"Gives a set amount of health to a player");


    instead of checking the flag in the function.
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    {7~11} TROLL
    Senior Member
    Join Date: Oct 2008
    Location: Atlanta,Georgia
    Old 01-10-2009 , 21:54   Re: Heal me Plugin
    Reply With Quote #7

    this would be cool on css
    __________________
    {7~11} TROLL is offline
    Shango
    Junior Member
    Join Date: Oct 2008
    Location: Britain
    Old 01-11-2009 , 19:23   Re: Heal me Plugin
    Reply With Quote #8

    Quote:
    Originally Posted by Liam View Post
    Only problem I see is this:

    RegConsoleCmd("sm_hmheal",Command_Heal,"Gives a set amount of health to a player");

    according to your directions, it should be:

    RegConsoleCmd("sm_healme",Command_Heal,"Gives a set amount of health to a player");

    If you can fix that we'll get it approved.

    Fixed, thanks i didn't notice that haha, i had used different commands when making it, then changed them all to upload to here, must have missed that one
    __________________
    "Jees I'm bored, let's learn how to code for Sourcemod"
    STOP!
    MIND HURTING AHEAD
    "crap"
    Shango is offline
    Shango
    Junior Member
    Join Date: Oct 2008
    Location: Britain
    Old 01-11-2009 , 19:31   Re: Heal me Plugin
    Reply With Quote #9

    Quote:
    Originally Posted by {7~11} TROLL View Post
    this would be cool on css
    This MAY work on css, i'm not too sure though, as i said i made this for tf2 so who knows, it could work on css, l4d, and whatnot, but i don't currently have the time to check, if anyone else does and they tell me that would be great
    __________________
    "Jees I'm bored, let's learn how to code for Sourcemod"
    STOP!
    MIND HURTING AHEAD
    "crap"
    Shango is offline
    Spazman0
    Member
    Join Date: Jul 2008
    Old 05-31-2009 , 05:04   Re: Healme Plugin for subscribers!
    Reply With Quote #10

    I can confirm that it works on CSS.
    Spazman0 is offline
    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 19:28.


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