View Single Post
Author Message
Lantejoula
Senior Member
Join Date: Mar 2021
Location: Portugal
Old 12-08-2021 , 10:12   [CS GO] Surrender
Reply With Quote #1

[CS GO] Surrender

Description

This plugin adds the option for each team to surrender. Plugin creates voting for the team and if accepted, the team surrenders and both teams are shuffled and the game restarts.

Commands

• !surrender - Create vote for team to surrender
• !gg - Create vote for team to surrender

ConVars

• sm_surrender_chat_prefix - Chat Prefix

• sm_surrender_cooldown - Enable/Disable the Cooldown System (1 - Enable | 0 - Disable)

• sm_surrender_scramble - Enable/Disable the Scrable Teams when Someone Surrender (1 - Enable | 0 - Disable)

• sm_surrender_cooldown_time - How many time command have cooldown? ( Default 600 = 10 Min)

• sm_surrender_warmup - Enable/Disable the Warmup after Surrender (1 - Enable | 0 - Disable)

• sm_surrender_difference_rounds - How many Rounds of Difference does it take for the Opposing team to be Alerted to Surrender? ( Default = 5 )

• sm_surrender_vote_time - How many time players have for vote for surrender? ( Default = 15 )

• sm_surrender_type - 1 - Yes votes are more than no votes ||| 0 - X votes are required (sm_surrender_sucess_votes)

• sm_surrender_sucess_votes - How many votes does it take to surrender? (need sm surrender type to be 1) ( Default = 3 )

Changelog

08-06-2022 (v1.5) - Requested here by Siniii

• Update Translations

08-06-2022 (v1.4) - Requested here by Siniii

• 3 New ConVars (sm_surrender_vote_time & sm_surrender_type & sm_surrender_sucess_votes)
• It is now possible to choose how many votes are needed for the surrender to be successful. Need sm_surrender_type at 0
• You can now choose how much time players have to vote on surrender

02-06-2022 (v1.3) - Requested here by Orygen

• Now the losing team is warned that they can surrender
• New ConVar: sm_surrender_difference_rounds
• Update Translations

11-12-2021 (v1.2) - Requested here by lugaa

• Win Round for CT and T (Remove Win Panel Draw)
• NEW: Match End Painel

10-12-2021 (v1.1) - Requested here by lugaa

• Now after surrender have warmup (Can disable that on cfg)
• NEW CONVAR: sm_surrender_warmup
• FIX ERROR: Chat Prefix Color on Scramble Messages

08-12-2021 (v1.0)

• Initial release.

Plugin tested in CSGO with:

Sourcemod 1.10
Metamod:Source 1.11


Credits

Thanks to the Owners of these Plugins - I used parts of scripting in my Plugin

Team Scramble - By WatchDogs
SetTeamScore - By SM9

Instalation

• Upload the files (.smx for plugins folders and .txt for translations folder)
• Restart your Server or Change the Map
• [Optional] Configure the file cfg (csgo/cfg/sourcemod/.cfg)

Attached Files
File Type: zip Surrender 1.0.zip (47.1 KB, 168 views)
File Type: zip Surrender 1.1.zip (47.2 KB, 154 views)
File Type: zip Surrender 1.2.zip (47.8 KB, 209 views)
File Type: zip Surrender 1.3.zip (48.7 KB, 77 views)
File Type: zip Surrender 1.4.zip (49.4 KB, 141 views)
File Type: zip Surrender 1.5.zip (49.1 KB, 117 views)
__________________
Discord ➜ Lantejoula#0064 | Steam | Want Help? Add Me!!

Last edited by Lantejoula; 12-27-2022 at 14:06.
Lantejoula is offline