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

[CSGO/CSS] Knife Fight (Dev Zones support)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
brooks
Junior Member
Join Date: Oct 2020
Location: United States
Plugin ID:
7587
Plugin Version:
1.0
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Knife Fight between last two players standing
Unapprover:
Reason for Unapproving:
No source code / plugin, GitHub links are broken, fix it and use the Report Post button for a new review.
Old 04-05-2021 , 11:58   [CSGO/CSS] Knife Fight (Dev Zones support)
Reply With Quote #1

Last Man Standing: Knife Fight

Description:

When two players are left alive (FFA Support for CS:GO) they are prompted to Knife Fight.

When the fight begins, player's weapons are removed and given back after the end of the fight.

If enabled, a random song will be played during the fight.

Commands:

!kfmenu - Preferences for fight songs and auto-accept/decline. Also used to show the fight panel if
you change your mind.

Dependencies:

* Dev Zones - Franc1sco (OPTIONAL)
https://forums.alliedmods.net/showthread.php?t=224839

Configuration:
Code:
// Teleport player to a specific zone on a map (zone must be named <mapname>_knifefight
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_knifefight_devzones "0"

// Play random song from config during the fight
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_knifefight_fightsong "1"

// Force players to fight
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_knifefight_forcefight "0"

// Min players to allow knife fight
// -
// Default: "3"
sm_knifefight_minplayers "3"

// Teleport players before the fight
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_knifefight_teleport "1"

// Duration of the knife fight
// -
// Default: "30"
sm_knifefight_time "30"
Code:
"knifefight_songs"
{
	"Songs"
	{
		/*
		"Example"
		{
			"path" ""
		}
		*/
	}
}
Forwards for developers:
Code:
/**
 *  Called when a player declines a fight
 *	@param client  Player who declined
 */
 forward void OnPlayerDeclineFight(int client);
 
 /**
 *  Called when a player accepts a fight
 *	@param client  Player who accepted
 */
 forward void OnPlayerAcceptFight(int client);
 
/**
 *  Called when the Knife Fight starts
 *  @param player1
 * 	@param player2
 */
 forward void OnKnifeFightStart(int player1, int player2);
 
 /**
 *  Called when the Knife Fight ends
 * @param winner  Player who won the fight
 */
 forward void OnKnifeFightEnd(int winner);
Credits:

* Knife Fight by altex and all credits listed there
https://forums.alliedmods.net/showthread.php?p=847532

GitHub Repository
Direct Download

Last edited by brooks; 11-06-2021 at 12:59.
brooks is offline
Skippydingledoo
AlliedModders Donor
Join Date: Jul 2020
Location: Denmark
Old 04-05-2021 , 13:49   Re: [CSGO/CSS] Knife Fight (Dev Zones support)
Reply With Quote #2

n1 brooks (⌐■_■)
__________________

Steam
Discord
__________________
Skippydingledoo is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 04-14-2023 , 13:56   Re: [CSGO/CSS] Knife Fight (Dev Zones support)
Reply With Quote #3

no plugin here, download 404, git 404.
asdfxD 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 11:56.


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