[CS:S & CS:GO] Choose for me (team randomizer)

Post Reply
in_so@pta
Administrator
Posts: 1074
Joined: Mon Jul 06, 2009 7:38 am
Jucator SA:MP ?: Da
Nick:: in_so@pta
Jucator CS ?: Da
Contact:

[CS:S & CS:GO] Choose for me (team randomizer)

Post by in_so@pta »

THIS PLUGIN IS NO LONGER MAINTAINED
Description
Randomly distributes players to teams. Swap players between teams or to Spectator.
I wrote this plugin for warmod servers. Generally choosing teams from a friend pool is a pain in the a.. so this selects random players from the server and adds them to teams. Other players remain at spec.
You can choose how many players will be distributed.
It doesn't force players to stay there. (Warmod does that)

Also you can switch players between teams or to spec.

Server With This Plugin
Cvars
// Number of players to play. (0 means everybody will be assaigned a team.)
// -
// Default: "0"
sm_chooseforme_teamsize "0"
(Cfg will be created after first run of the plugin.)
Usage
sm_cfmswap <name|playerlist> , swaps player to other team.
sm_cfmspec <name|playerlist>, swaps player to spectator mode.

Writing "playerlist" instead of name will open a player list menu.

sm_chooseforme <player count|Optional>


Player Count:
x=0 Distribute every player to teams
x>0 Distribute x players to teams
without an argument (sm_chooseforme) uses the value in CFG
Admin Menu
this is what I use in my adminmenu_custom.cfg;

Code: Select all

"Randomize teams"
  {
   "admin" "sm_admin"
   "cmd"  "sm_cfmrandomize @1"
   "execute" "player"
   "1"
   {
    "type"   "list"
    "title"  "Players Count"
    "1"  "10"
    "1."  "10 players"
    "2"  "12"
    "2."  "12 players"
    "3"  "20"
    "3."  "20 players"
    "4"  "32"
    "4."  "32 players"
    "5"  "0"
    "5."  "Everyone"
   }
  }
  "Switch Player Team"
  {
   "admin" "sm_admin"
   "cmd"  "sm_cfmswap playerlist"
   "execute" "player"
  }
  "Switch to Spec"
  {
   "admin" "sm_admin"
   "cmd"  "sm_cfmspec playerlist"
   "execute" "player"
   }
Available Translations
English
Turkish
Changelog
V1.5.3, 2014-07-29
Updater fix
V1.5.2, 2013-04-18
Dropbox related updater fix
V1.5.1, 2012-08-30
Code Cleaning
Skin Related Code Adjustments
Translations Support
Added translation: Tr
Updater Support
V1.4, 2012-08-25
CS:GO support
Custom model friendly (server side models at CS:S)
V1.3, 2012-07-27
*Fixed model bug when alive targets are switched between teams.
V1.2, 2012-06-30
Round ends when last member of a team is switched.
If the terrorist with C4 is swithed to CT, drops the bomb first.
V1.1, 2012-06-27
Fixed switching Source Tv to team bug
Added internal player menu for swapping. (sm_cfmswap playerlist, sm_cfmspec playerlist)
v1.0, 2012-06-01
Initial release.
Installation instructions
Download the sm_chooseforme.zip and extract the contents to your sourcemod folder.

Dependencies
Updater
Hope it will be useful..
Live long and prosper!

Get Plugin or Get Source
sm_chooseforme.zip
Source AlliedModders
Post Reply

Return to “Admin Commands”