[CS:GO] Retakes:

The plugin sets up a retake situation in a random site in the map.

The idea was taken from



Features:

- Weapon Selection: player can select what weapon he would like to play as ct and if we want to play with awp

- Pistol Round: x first rounds are pistol rounds (change able)



Explanation:

At the start of the round each player get random spawn (set by an admin) in the map depends on the site. There is special spawns for each site and each team, the bomber get his own spawn.



Every player get random grenade set and weapons, in each team there is only 1awp the awp player get stronger pistol by his choice all the other players get rifles and default pistols.



If the T lose the round all the T's switch to Ct and the top killers of the round in the Ct switch to the T.

If the T win the round the teams will stay the same if balanced.

If the teams aren't balanced the mode will balance the teams (Ct has 1 player advantage)



Convars:

-reakes_pistols - how much pistols round will be. 0 to disable.

-retakes_winrow - how much rounds in a row the T's need to win for scramble the teams. 0 to disable

-retakes_strongpistol - How much percent to give a awper a strong pistol by his choice. 0 to disable

-retakes_didntplant - How much time player should be banned if he didnt planted twice. -1 - Do nothing, 0 - Kick client



Requirements:

-Sourcemod 1.6+

-ClientPrefs (comes with sourcemod)

-Updated gamedeta recommending the most update gamedeta from here



Installation:

-Put retakes.smx at the plugins folder.

-Add the following entry in databases.cfg (support sqlite and mysql)

HTML Code: "retakes" { "driver" "sqlite" "host" "localhost" "database" "retakes-sqlite" "user" "root" "pass" "" }

For sqlite:put retakes-sqlite.sq3 at sourcemode/data/sqlite/. and set the database "retakes-sqlite"

For mysql:import retakes-mysql.sql to the mysql server.



Configuration:

The basic config file with the cvars will automatically create in config/sourcemod/retakes.cfg



Admin Commands:

sm_add - Add spawns, stand where you want to spawn will be, then choose site->type.

sm_del - Delete spawns, Choose spawn to delete in the menu it will teleport you to the spawn and ask you to delete the spawn.

sm_edit - Set the server to edit mode the edit mode enables laser that show where the spawns are (Ct:Blue, T:Red, Bomber:Orange, Where there is a light ball its symbol Site A)

sm_spawns - Prints how much spawns for each site.

sm_scramble - Scramble the teams in the next round.

sm_start - Skip the map load time.

sm_pistols - Toggle pistol only mode.

sm_vp - Vote for pistols only



Client Commands:

sm_guns - Change weapons preference.



To Do List:

Make ranking system

Change Log:



1.5 (07/08/2016)

Attempt fix for valve update

1.4 (09/05/2016)

Scarmble and auto balance has been fixed

sm_vp added - Vote for pistols only.

sm_pistols changed to rcon only due admin abuse.

sm_start changed to rcon only due admin abuse.

sm_scramble changed to rcon only due admin abuse.

1.3 (22/12/2014)

Scarmble and auto balance has been fixed

Grenades has been balanced

New spawns has been set from splewis's files

sm_pistols added - Toggle pistol only mode.

1.2.1 (22/12/2014)

Added retakes_didntplant 1.2 (13/12/2014)

All the balance/map load issues fixed

sm_start command added

if bomber didnt plant the bomb he is the only one whom switch to ct and next time he does it he will get banned for 30 minutes

1.1.1 (28/11/2014)

Fixed map load issues

Fixed players get stuck in spectator(ghost guns)

Some balance issues when new player joining

Players get teleport to spawns faster 1.1.0 (26/11/2014)

Fixed mysql file

Every team can get only the same grenade set only once.(balancing the grenades) 1.0.9 (23/11/2014)

Fixed some queue and spawn bugs

Added costume configs for retakes

Fixed balance issues 1.0.8 (22/11/2014)

Fixed some errors 1.0.7 (22/11/2014)

Added Queue if there isnt enough spawns 1.0.6 (21/11/2014)

Fixed some minor bugs and improve performance 1.0.5 (21/11/2014)

Auto Updater Added 1.0.4 (21/11/2014)

Fix Balance issue when new players joining 1.0.3 (21/11/2014)

Change map bug probaly fixed

Fixed Scramble 1.0.2 (21/11/2014)

Fixed map load bugs

In first connect the gun menu shows up

Added MAXSPAWNS define

Automatically adding "retakes" tag to the server 1.0.1 (21/11/2014)

Fixed some minor bugs

Get rid of smlib include 1.0.0 (20/11/2014)

Official Release

Credits:

- prenN for testing with me and for set spawn points



The original plugin got published https://github.com/splewis/csgo-retakes The plugin sets up a retake situation in a random site in the map.The idea was taken from http://retakes.splewis.net/ since the plugin author didn't published it i re-created it for the public i hope you will enjoy- Weapon Selection: player can select what weapon he would like to play as ct and if we want to play with awp- Pistol Round: x first rounds are pistol rounds (change able)At the start of the round each player get random spawn (set by an admin) in the map depends on the site. There is special spawns for each site and each team, the bomber get his own spawn.Every player get random grenade set and weapons, in each team there is only 1awp the awp player get stronger pistol by his choice all the other players get rifles and default pistols.If the T lose the round all the T's switch to Ct and the top killers of the round in the Ct switch to the T.If the T win the round the teams will stay the same if balanced.If the teams aren't balanced the mode will balance the teams (Ct has 1 player advantage)-reakes_pistols - how much pistols round will be. 0 to disable.-retakes_winrow - how much rounds in a row the T's need to win for scramble the teams. 0 to disable-retakes_strongpistol - How much percent to give a awper a strong pistol by his choice. 0 to disable-retakes_didntplant - How much time player should be banned if he didnt planted twice. -1 - Do nothing, 0 - Kick client-Sourcemod 1.6+-ClientPrefs (comes with sourcemod)-Updated gamedeta recommending the most update gamedeta from here http://www.sourcemod.net/snapshots.php -Put retakes.smx at the plugins folder.-Add the following entry in databases.cfg (support sqlite and mysql)-To add default spawns set by me you need to download the defaultsql.rar file.For sqlite:put retakes-sqlite.sq3 at sourcemode/data/sqlite/. and set the database "retakes-sqlite"For mysql:import retakes-mysql.sql to the mysql server.The basic config file with the cvars will automatically create in config/sourcemod/retakes.cfgsm_add - Add spawns, stand where you want to spawn will be, then choose site->type.sm_del - Delete spawns, Choose spawn to delete in the menu it will teleport you to the spawn and ask you to delete the spawn.sm_edit - Set the server to edit mode the edit mode enables laser that show where the spawns are (Ct:Blue, T:Red, Bomber:Orange, Where there is a light ball its symbol Site A)sm_spawns - Prints how much spawns for each site.sm_scramble - Scramble the teams in the next round.sm_start - Skip the map load time.sm_pistols - Toggle pistol only mode.sm_vp - Vote for pistols onlysm_guns - Change weapons preference.(07/08/2016)(09/05/2016)(22/12/2014)(22/12/2014)(13/12/2014)(28/11/2014)(26/11/2014)(23/11/2014)(22/11/2014)(22/11/2014)(21/11/2014)(21/11/2014)(21/11/2014)(21/11/2014)(21/11/2014)(21/11/2014)(20/11/2014)- prenN for testing with me and for set spawn points Attached Files retakes.zip (49.7 KB, 8786 views) defaultsql.zip (24.1 KB, 4619 views) Last edited by ofir753; 10-14-2016 at 17:27 .