AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [CS:GO] Knife Swapper 1.6.5 [Updated 2015.12.07] (https://forums.alliedmods.net/showthread.php?t=249900)

Neuro Toxin 10-14-2014 08:12

[CS:GO] Knife Swapper 1.6.5 [Updated 2015.12.07]
 
4 Attachment(s)
[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+

virusking 10-14-2014 09:03

Re: [CS:GO] Knife Swapper
 
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.

Neuro Toxin 10-14-2014 18:20

Re: [CS:GO] Knife Swapper
 
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.

Pyro_ 10-15-2014 03:16

Re: [CS:GO] Knife Swapper
 
Isn't it just the same as SwitchKnife? https://forums.alliedmods.net/showthread.php?t=235756

Neuro Toxin 10-15-2014 04:08

Re: [CS:GO] Knife Swapper
 
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.

virusking 10-19-2014 15:03

Re: [CS:GO] Knife Swapper
 
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.

Neuro Toxin 10-19-2014 18:14

Re: [CS:GO] Knife Swapper
 
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.

Neuro Toxin 10-19-2014 18:22

Re: [CS:GO] Knife Swapper
 
Ps. Ill do an update so if you have a default knife the plugin will block giveknife.

asdfxD 01-11-2015 12:43

Re: [CS:GO] Knife Swapper
 
pls add command !giveknife @all

Neuro Toxin 01-11-2015 21:08

Re: [CS:GO] Knife Swapper
 
Quote:

Originally Posted by asdfxD (Post 2247866)
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


All times are GMT -4. The time now is 14:13.

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