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

[TF2]Dispenser Here 1.2.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author
svaugrasn
Junior Member
Join Date: Jun 2013
Plugin ID:
3864
Plugin Version:
1.2.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    indicate the location to build dispenser, teleporter, sentry gun
    Old 08-30-2013 , 12:07   [TF2]Dispenser Here 1.2.0
    Reply With Quote #1

    Description
    Spawn buildings model when using voicecommand "Need a teleporter here", "Need a dispenser here", "Need a sentry here".



    Cvars
    • sm_disp_blueprint(1)
      Enable/Disable the blueprint.

    • sm_disp_time(1 sec)
      Time between spawn the model.
    • sm_disp_remove(10.0 sec)
      Time to remove the model.
    • sm_disp_limit(0)
      building per person. 0 to disable checking.
    • sm_disp_admin(0)
      Enable/disable Admin flag check.


    Changelog
    Code:
    2013-09-02 (v1.2.0)
    * Add cvar sm_disp_limit, sm_disp_admin.
    
    2013-08-31 (v1.1.1)
    * Fix Spectator can spawn models
    
    2013-08-31 (v1.1.0)
    * Add cvar sm_disp_blueprint, sm_disp_time, sm_disp_remove.
    
    2013-08-31 (v1.0.0)
    * Initial release.
    Attached Files
    File Type: sp Get Plugin or Get Source (dispenser_here.sp - 1681 views - 4.3 KB)

    Last edited by svaugrasn; 09-02-2013 at 03:11.
    svaugrasn is offline
    loranger
    Senior Member
    Join Date: Jun 2011
    Old 08-30-2013 , 12:11   Re: [TF2]Dispenser Here
    Reply With Quote #2

    Nice, I would add admflag_generic

    Last edited by loranger; 08-30-2013 at 12:12.
    loranger is offline
    island55
    Senior Member
    Join Date: Aug 2010
    Location: charleston
    Old 08-30-2013 , 14:56   Re: [TF2]Dispenser Here
    Reply With Quote #3

    should definitely add restrictions to only one building per person, or even per team cause you'll have idiots placing 67483568734 buildings across the map in an attempt to ruin the game.
    island55 is offline
    Bjorngomes
    Member
    Join Date: Jun 2013
    Old 08-30-2013 , 15:16   Re: [TF2]Dispenser Here
    Reply With Quote #4

    Great Plugin but i agree to add some restrictions to it for the noobs that can abuse
    Bjorngomes is offline
    Dr. Greg House
    Professional Troll,
    Part-Time Asshole
    Join Date: Jun 2010
    Old 08-30-2013 , 15:39   Re: [TF2]Dispenser Here
    Reply With Quote #5

    Quote:
    Originally Posted by island55 View Post
    should definitely add restrictions to only one building per person, or even per team cause you'll have idiots placing 67483568734 buildings across the map in an attempt to ruin the game.
    Yup.
    Otherwise incredibly great plugin. This should be a common feature of the game.
    Dr. Greg House is offline
    playpo
    Junior Member
    Join Date: Oct 2011
    Old 09-01-2013 , 12:37   Re: [TF2]Dispenser Here 1.1.1
    Reply With Quote #6

    we need adminflag here!

    plz update..

    Last edited by playpo; 09-01-2013 at 12:37.
    playpo is offline
    Dr. Greg House
    Professional Troll,
    Part-Time Asshole
    Join Date: Jun 2010
    Old 09-01-2013 , 13:39   Re: [TF2]Dispenser Here 1.1.1
    Reply With Quote #7

    Why not turn
    Code:
            if(StringToInt(voicemenu1) == 1)    // teleporter here
            {
                if(StringToInt(voicemenu2) == 3)
                {
                    Command_Prop(client,0);
                }
            }
            if(StringToInt(voicemenu1) == 1)    // dispenser here
            {
                if(StringToInt(voicemenu2) == 4)
                {
                    Command_Prop(client,1);
                }
            }
            if(StringToInt(voicemenu1) == 1)    // sentry here    
            {
                if(StringToInt(voicemenu2) == 5)
                {
                    Command_Prop(client,2);
                }
            }
    into

    Code:
            if(StringToInt(voicemenu1) == 1)
            {
                new type = StringToInt(voicemenu2)
                if(type>=3 && type<=5)
                {
                    Command_Prop(client,type-2);
                }
            }
    or use a switch statement?
    Dr. Greg House is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 09-01-2013 , 13:53   Re: [TF2]Dispenser Here 1.1.1
    Reply With Quote #8

    Can I do the restriction or the owner of this awesome plugin wanna do imself ?
    __________________
    Want to check my plugins ?
    Arkarr is offline
    Dr. Greg House
    Professional Troll,
    Part-Time Asshole
    Join Date: Jun 2010
    Old 09-01-2013 , 13:55   Re: [TF2]Dispenser Here 1.1.1
    Reply With Quote #9

    Look at the code, there is a restriction based on time.
    Dr. Greg House is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 09-01-2013 , 14:00   Re: [TF2]Dispenser Here 1.1.1
    Reply With Quote #10

    Quote:
    Originally Posted by Dr. Greg House View Post
    Look at the code, there is a restriction based on time.
    Herm :/ sorry, didn't seen.
    __________________
    Want to check my plugins ?
    Arkarr is offline
    Reply



    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 17:17.


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