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

[CS:GO] Give Taser


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Gdk
Member
Join Date: Oct 2014
Plugin ID:
5308
Plugin Version:
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Gives an admin or any user a taser.
    Old 08-07-2016 , 17:07   [CS:GO] Give Taser
    Reply With Quote #1

    Description:
    Gives an admin or any user a taser and equips the taser when they type !taser or /taser in chat, or sm_taser in console.
    If player already has a taser (but no equipped), using sm_taser will equip it.
    If player has a taser equiped when sm_taser is used the taser will be removed and switch to last weapon used.
    When a taser is removed money and variables are reset.
    This is useful if you dont want to spawn with a taser, since taser is in the same slot as knife and csgo always takes the taser out first.
    Command can be public, any admin, or a specific admin flag required.

    Works best when bound to a key ex: bind t sm_taser

    Cvars:
    sm_gt_enabled: Plugin enabled or disabled (def: 1)
    sm_gt_public_enabled: Whether non admins can receive a taser (def: 1)
    sm_gt_max_admin_round: Amount of tasers admins can receive each round (def: 1)
    sm_gt_max_admin_life: Amount of tasers admins can receive each life (def: -1)
    sm_gt_max_admin_map: Amount of tasers admins can receive each map (def: -1)
    sm_gt_admin_cooldown: Number of seconds to wait between giving admins a taser, 0 to disable, time starts when fired (def: 120)
    sm_gt_max_pubic_round: Amount of tasers non admins can receive each round (def: 1)
    sm_gt_max_pubic_life: Amount of tasers non admins can receive each life (def: -1)
    sm_gt_max_pubic_map: Amount of tasers non admins can receive each map (def: 1)
    sm_gt_pubic_cooldown: Number of seconds to wait between giving non admins a taser, 0 to disable, time starts when fired (def: 240)
    sm_gt_track_buys: Should plugin count tasers purchased from buy menu (def: 1)
    sm_gt_track_money: Require player to pay $200 to receive a taser (def: 0)
    sm_gt_admin_flag: Admin flag required to receive a taser none for no flag needed any allows any admin flag (def: any) Valid flags: any,a,b,c,d,e,f,g,h,i,j,k,m,n,z,o,p

    Note:
    Currently can not remove tasers purchased from buy menu, only tasers given by sm_taser.
    Added ability to remove purchased tasers in version 2.1.0
    To compile you will need smlib


    Download:
    https://github.com/RavageCS/CS-GO-give_taser
    Attached Files
    File Type: zip give_taser.zip (21.2 KB, 260 views)

    Last edited by Gdk; 05-21-2017 at 16:59.
    Gdk is offline
    Sw33T3R
    AlliedModders Donor
    Join Date: Mar 2014
    Old 09-02-2016 , 13:04   Re: [CSGO] Give Taser
    Reply With Quote #2

    Quote:
    Originally Posted by Gdk View Post
    Description:
    Gives an admin or any user a taser and equips the taser when they type !taser or /taser in chat, or sm_taser in console. This is useful if you dont want to spawn with a taser, since taser is in the same slot as knife and csgo always takes the taser out first. If player already has a taser, using sm_taser will equip it. Command can be public, any admin, or a specific admin flag required.

    Best to bind to a key ex: bind v sm_taser

    Cvars:
    sm_gt_enabled: Plugin enabled or disabled (def: 1)
    sm_gt_max_round: Amount of tasers player can recive each round (def: 1)
    sm_gt_max_life: Amount of tasers player can recive each life (def: -1)
    sm_gt_admin_flag: Admin flag required to receive a taser none for no flag needed any allows any admin flag (def: any)
    Valid flags: any, none, a,b,c,d,e,f,g,h,i,j,k,m,n,z,o,p

    Note:
    This plugin only tracks tasers given by this plugin. If a player buys or is given a taser from another plugin, they will still be able to receive tasers using sm_taser.

    Download:
    https://github.com/RavageCS/CS-GO-give_taser
    Nice, but can you add Money support?
    For example: Price to taser buy
    Sw33T3R is offline
    Gdk
    Member
    Join Date: Oct 2014
    Old 09-02-2016 , 17:26   Re: [CSGO] Give Taser
    Reply With Quote #3

    Quote:
    Originally Posted by Sw33T3R View Post
    Nice, but can you add Money support?
    For example: Price to taser buy
    That is a good idea i might try it out. I was also thinking of making other restrictions like get 5 kills/headshots before you're allowed to receive a taser, or only 1 or 2 tasers per map etc. I use this on my retakes servers, its pretty op especially on pistol rounds.
    Gdk is offline
    Reminiscences
    New Member
    Join Date: Sep 2015
    Old 09-03-2016 , 13:00   Re: [CSGO] Give Taser
    Reply With Quote #4

    Add some convars so players can choose either
    • Max tasers per round
    • Time limit for !taser command
    • A mix of both

    Something like:

    Code:
    	new currentTime = GetTime();
    		if (currentTime - LastUsed[id] < 10) 
    		{
    			new timeleft = 10 - (currentTime - LastUsed[id]);
    			PrintToChat(id, "Command On Cooldown - Active in %d seconds", timeleft);
    		}
    Reminiscences is offline
    Gdk
    Member
    Join Date: Oct 2014
    Old 09-03-2016 , 16:45   Re: [CSGO] Give Taser
    Reply With Quote #5

    Quote:
    Originally Posted by Reminiscences View Post
    Add some convars so players can choose either
    • Max tasers per round
    • Time limit for !taser command
    • A mix of both
    I like your time idea too. There already is a convar for max taser per round default is 1.
    Gdk is offline
    Gdk
    Member
    Join Date: Oct 2014
    Old 09-15-2016 , 14:15   Re: [CSGO] Give Taser
    Reply With Quote #6

    Added the suggested cvars above and a cvar to track tasers purchased from buy menu. Using better way to check players equipment, but now requires smlib. I might update the translations phrases if I can think if phrases I like better than the current ones, and possibly add color. Can remove a taser now (only given from plugin not purchased). Might change the default cooldown time after I play with it more.
    Gdk is offline
    Gdk
    Member
    Join Date: Oct 2014
    Old 10-25-2016 , 19:49   Re: [CS:GO] Give Taser
    Reply With Quote #7

    Added ability to remove purchased tasers
    Gdk is offline
    Gdk
    Member
    Join Date: Oct 2014
    Old 05-21-2017 , 17:00   Re: [CS:GO] Give Taser
    Reply With Quote #8

    Added separate cvars for non admin users.

    Only thing left i could see doing is make translations prettier with color better formatting etc
    Gdk is offline
    ownage13
    AlliedModders Donor
    Join Date: Apr 2015
    Old 10-15-2017 , 03:37   Re: [CS:GO] Give Taser
    Reply With Quote #9

    Hello Gdk,

    Love your plugin!

    I'm wondering if you could make this so it could be enabled/disabled at the start of the map so the users dont have to use !taser every round just to have or not have the taser (:

    I think a "Do you want the taser enabled" Yes No, Menu option where it saved client preferences would be a really good update to it and I would think would be perfect!

    I don't know how hard that would be to do but if it was possible I would love to see that update (:

    Last edited by ownage13; 10-15-2017 at 03:38.
    ownage13 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 13:21.


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