AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS GO] Surrender (https://forums.alliedmods.net/showthread.php?t=335477)

Lantejoula 12-08-2021 10:12

[CS GO] Surrender
 
6 Attachment(s)
[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)


lugaa 12-10-2021 01:51

Re: [CS GO] Surrender
 
chat prefix color not work https://imgur.com/a/fuLjGtI

Plugin working well. Can we start warm up after we surrended? Or votemap is about to be perfect.

or scoreboard then votemap: https://imgur.com/a/gMGg7vs

Lantejoula 12-10-2021 13:08

Re: [CS GO] Surrender
 
Quote:

Originally Posted by lugaa (Post 2765467)
chat prefix color not work https://imgur.com/a/fuLjGtI

Plugin working well. Can we start warm up after we surrended? Or votemap is about to be perfect.

or scoreboard then votemap: https://imgur.com/a/gMGg7vs

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

Lantejoula 12-10-2021 21:59

Re: [CS GO] Surrender
 
Quote:

Originally Posted by lugaa (Post 2765467)
chat prefix color not work https://imgur.com/a/fuLjGtI

Plugin working well. Can we start warm up after we surrended? Or votemap is about to be perfect.

or scoreboard then votemap: https://imgur.com/a/gMGg7vs

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

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

lugaa 12-10-2021 23:37

Re: [CS GO] Surrender
 
Quote:

Originally Posted by Lantejoula (Post 2765522)
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

Hi I tested it. i'm use pugsetup warm up.

bot_quota 0
mp_afterroundmoney 16000
mp_autokick 0
mp_autoteambalance 0
mp_buytime 6000
mp_death_drop_gun 0
mp_free_armor 2
mp_freezetime 1
mp_friendlyfire 0
mp_limitteams 0
mp_maxrounds 30
mp_respawn_immunitytime 2
mp_respawn_on_death_ct 1
mp_respawn_on_death_t 1
mp_round_restart_delay 3
mp_roundtime 1.75
mp_roundtime_defuse 1.75
mp_roundtime_hostage 1.75
mp_solid_teammates 0
mp_spectators_max 20
mp_startmoney 16000
mp_timelimit 0
sv_alltalk 1
sv_auto_full_alltalk_during_warmup_half_end 1
sv_competitive_official_5v5 1
sv_full_alltalk 1

and warm up :D counting 5 minutes. https://imgur.com/a/OmLpBM2


Can warm up be made in no time? and no drop gun, friendlyfire off, etc .. can pugsetup warm up called?
or when finished with votemap, pugsetup will start with a warm up after the map is replaced.



[TAG] Team T did not achieve enough votes to surrender. Fight on! how to change this tag?
[TAG] Team T did not achieve enough votes to surrender. Fight on!

Lantejoula 12-11-2021 07:32

Re: [CS GO] Surrender
 
Quote:

Originally Posted by lugaa (Post 2765573)
Hi I tested it. i'm use pugsetup warm up.
Can warm up be made in no time? and no drop gun, friendlyfire off, etc .. can pugsetup warm up called?
or when finished with votemap, pugsetup will start with a warm up after the map is replaced.

If pugsetup have warmup and you user pugsetup warmup, change this convar "sm_surrender_warmup" for 0 on Cfg ( csgo/cfg/sourcemod/plugin.surrender.cfg )

Quote:

Originally Posted by lugaa (Post 2765573)
[TAG] Team T did not achieve enough votes to surrender. Fight on! how to change this tag?
[TAG] Team T did not achieve enough votes to surrender. Fight on!

Change Tag and Color Tag on Cfg ( csgo/cfg/sourcemod/plugin.surrender.cfg )

Carpete_Americana 12-18-2021 17:27

Re: [CS GO] Surrender
 
nice release :wink::bee:

Siniii 12-22-2021 06:25

Re: [CS GO] Surrender
 
Can someone pls add ConVars how many players have to say YES for success vote??

Lantejoula 12-22-2021 19:46

Re: [CS GO] Surrender
 
Quote:

Originally Posted by Siniii (Post 2766675)
Can someone pls add ConVars how many players have to say YES for success vote??

In the plugin, if the "yes" votes are higher than the "no" votes, the plugin authorizes surrender, if the "yes" and "no" votes are equal or if the "yes" votes are lower than the "no" votes ", the plugin cancels the surrender!

lugaa 12-28-2021 00:10

Re: [CS GO] Surrender
 
i'm using this plugin and pugsetup warmup.cfg

https://imgur.com/a/KLoRoxg

"Fix Competitive Warmup" (1.0) by Ilusion9 ----> old warmup plugin

If pugsetup have warmup and you user pugsetup warmup, change this convar "sm_surrender_warmup" for 0 on Cfg ( csgo/cfg/sourcemod/plugin.surrender.cfg )


sm_surrender_warmup "0" but pugsetup warmup does not work. I will attach a picture. time is counting
sm_surrender_warmup "1" warm up counting
When 0, the match is still live...
https://imgur.com/a/clu5Vzq


All times are GMT -4. The time now is 07:46.

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