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

[CS:GO] Knife Swapper 1.6.5 [Updated 2015.12.07]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Plugin ID:
4384
Plugin Version:
1.6.4
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows players to give, take and swap knives with each other!
    Unapprover:
    Reason for Unapproving:
    http://blog.counter-strike.net/index.php/server_guidelines/
    Old 10-14-2014 , 08:12   [CS:GO] Knife Swapper 1.6.5 [Updated 2015.12.07]
    Reply With Quote #1

    [CS:GO] Knife Swapper 1.6.5
    A plugin for the fun of it.

    Players can use !giveknife, !takeknife and !swapknife to show off their expensive knives to other players.

    Features
    • Turn on/off each of the commands via convars
    • Allow commands during a period after each round start
    • Enable/Disable multi targeting for the !giveknife command
    Default Plugin Setup
    Players can use !takeknife at any point in a round. When a player takes a knife, their selection is remembered and they will receive the same knife each time they spawn. !giveknife and !swapknife commands are disabled.
    Commands
    !giveknife <target> - Gives the target the players knife and spawns a new one
    !takeknife <target> - Takes the targets knife and spawns a new one (for the target)
    !swapknife <target> - Swaps knives between the player and the target
    !resetknife - Resets your knife (spawns your own knife and gives it back to you)
    !blockknife - Toggles blocking of players taking/swapping their knives with you
    Convars
    knifeswapper_swapknife - Enables !swapknife command. (default: 0)
    knifeswapper_giveknife - Enables !giveknife command. (default: 0)
    knifeswapper_takeknife - Enables !takeknife command. (default: 1)
    knifeswapper_usetimer - Players can only use the commands at the start of each round. (default: 0)
    knifeswapper_time - How long (seconds) players can use the commands on round start. (default: 30)
    knifeswapper_forcespawn - Forces a knife to spawn after round start if the player didn't receive one already (default: 0)
    knifeswapper_allow_multitarget - Allows multi targeting on the !giveknife command (default: 1)
    knifeswapper_flag - Only clients with the selected flag will be able to use knife commands. (default: "")
    knifeswapper_kniferequired - Clients who dont have a knife cant receive one via any plugin commands. (default: 0)
    knifeswapper_disablecmdmessages - Hides plugin commands so they dont display in chat. (default: 0)
    knifeswapper_saveselection - Saves a players selection from !giveknife. (default: 1)
    knifeswapper_blockknife - Allows players to block having their knife taken. (default: 1)
    knifeswapper_spawndelay - The delay between the OnSpawned Event until a players receives their saved knife.
    (default: 0.0)

    Spoiler

    Changes:
    Version 1.6.5
    * Added cvar
    knifeswapper_spawndelay

    Version 1.6.4
    * Fixed error spewing in sourcemod log
    * Moved to transitional syntax
    * Added !blockknife command
    * Added cvar knifeswapper_blockknife

    Version 1.6.2
    * Fixed getting a players knife on respawn
    * Added cvar knifeswapper_saveselection (default value 1)
    * Added fix for plugins that alter weapons with the GNU forward

    Version 1.6.0
    * Fixed !resetknife not being friends with
    knifeswapper_kniferequired
    * Fixed !giveknife/!takeknife not equiping properly when a taser is involved
    * Fixed some instances where
    !giveknife/!takeknife wouldn't set as the active weapon

    Version 1.5.2
    * Compiled using Sourcemod 1.7.1 compiler

    Version 1.5.1
    * Fixed Client Not In Game error


    Version 1.5
    * Added
    knifeswapper_disablecmdmessages to allow server operators to hide commands from this plugin
    * Fixed a spelling mistake in chat message

    Version 1.4
    * Added
    knifeswapper_kniferequired to block all commands if the target(s) dont have a knife.

    Version 1.3
    * Auto respawning of knives from !takeknife command process on player_spawn instead of round_start.
    * Added cvar
    knifeswapper_flag which allows players with a matching flag to use the commands (eg. VIP only).
    * Changed default settings so !takeknife can be used at anytime

    Version 1.2
    * Players cant give or take default knives anymore
    * !takeknife remembers who you took your knife off and takes it at the start of each round (!resetknife clears the selection)
    * Fixed a glitch where players could have another weapon equipped when holding their knife
    * Removed debug messages in client consoles
    * Add/cleaned user messages

    Version 1.1
    * Fixed bug in
    knifeswapper_usetimer
    * Added !resetknife command
    * Added knifeswapper_allow_multitarget cvar

    Previous downloads: 1,400+
    Attached Files
    File Type: sp Get Plugin or Get Source (knifeswapper.sp - 3120 views - 25.8 KB)
    __________________

    Last edited by Neuro Toxin; 12-07-2015 at 05:00. Reason: Released 1.6.5
    Neuro Toxin is offline
    virusking
    AlliedModders Donor
    Join Date: Jul 2014
    Location: Helsinki
    Old 10-14-2014 , 09:03   Re: [CS:GO] Knife Swapper
    Reply With Quote #2

    So, if somebody got Karambit slaughter, and he will swap with a player who got just default knife, he's going to get karambit? Because only basic knives are available

    What about accepting/declining the knife swapping? So the player needs to request the another player before anything is made.

    Haven't tested the plugin yet, but will look into it in a moment.
    virusking is offline
    Neuro Toxin
    Veteran Member
    Join Date: Oct 2013
    Location: { closing the void; }
    Old 10-14-2014 , 18:20   Re: [CS:GO] Knife Swapper
    Reply With Quote #3

    If you use swapknife. Both players swap the knives they currently hold.

    If you use giveknife, you give your knife an you will respawn your knife again.

    If you use takeknife, you take the players knife and they respawn a new one.

    There is no accept menu. This has been built so the commands work during the first x seconds of each round.

    By default, this plugin only enables !giveknife for the first 30 seconds of each round.

    You need to set the convars to enable the other commands, disable or adjust the timer.
    __________________
    Neuro Toxin is offline
    Pyro_
    Senior Member
    Join Date: Oct 2013
    Old 10-15-2014 , 03:16   Re: [CS:GO] Knife Swapper
    Reply With Quote #4

    Isn't it just the same as SwitchKnife? https://forums.alliedmods.net/showthread.php?t=235756

    Last edited by Pyro_; 10-16-2014 at 01:12.
    Pyro_ is offline
    Neuro Toxin
    Veteran Member
    Join Date: Oct 2013
    Location: { closing the void; }
    Old 10-15-2014 , 04:08   Re: [CS:GO] Knife Swapper
    Reply With Quote #5

    There are differences.

    1. My plugin is based on performing the commands at the start of the round.
    2. As default settings. !giveknife gives a copy of your knife to the target. It doesn't swap both players knives.
    3. There is no confirmation menu
    4. It's more flexible as it has convar settings.
    __________________

    Last edited by Neuro Toxin; 10-15-2014 at 04:08. Reason: bad english
    Neuro Toxin is offline
    virusking
    AlliedModders Donor
    Join Date: Jul 2014
    Location: Helsinki
    Old 10-19-2014 , 15:03   Re: [CS:GO] Knife Swapper
    Reply With Quote #6

    Well I don't find a use for this plugin, because it's annoying that players can "troll" you by changing knives so you'll lose your own to get default knife of theirs.

    Accept/decline request would be great for this plugin.
    virusking is offline
    Neuro Toxin
    Veteran Member
    Join Date: Oct 2013
    Location: { closing the void; }
    Old 10-19-2014 , 18:14   Re: [CS:GO] Knife Swapper
    Reply With Quote #7

    If you want an accept menu that can be used at any point use the plugin linked by Pyro_. Be aware the linked plugin doesn't have a time limit from round start. You can be clutching and someone can send a request that blocks you switching weapons.
    __________________

    Last edited by Neuro Toxin; 10-19-2014 at 18:23.
    Neuro Toxin is offline
    Neuro Toxin
    Veteran Member
    Join Date: Oct 2013
    Location: { closing the void; }
    Old 10-19-2014 , 18:22   Re: [CS:GO] Knife Swapper
    Reply With Quote #8

    Ps. Ill do an update so if you have a default knife the plugin will block giveknife.
    __________________
    Neuro Toxin is offline
    asdfxD
    Veteran Member
    Join Date: Apr 2011
    Old 01-11-2015 , 12:43   Re: [CS:GO] Knife Swapper
    Reply With Quote #9

    pls add command !giveknife @all
    asdfxD is offline
    Neuro Toxin
    Veteran Member
    Join Date: Oct 2013
    Location: { closing the void; }
    Old 01-11-2015 , 21:08   Re: [CS:GO] Knife Swapper
    Reply With Quote #10

    Quote:
    Originally Posted by asdfxD View Post
    pls add command !giveknife @all
    I released a new version which includes your request

    Code:
    * Fixed bug in knifeswapper_usetimer
    * Added !resetknife command
    * Added knifeswapper_allow_multitarget cvar
    You need to set cvar knifeswapper_allow_multitarget to 1
    __________________
    Neuro Toxin 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 03:51.


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