[CS:S] Choose for me (team randomizer) (V1.0, 2012-06-01)

Randomly selects players and distributes them between teams.

You can choose how many players will be distributed. Others will remain in spec.

It doesn't force players to stay there.





Usage;

sm_cfmrandomize <player count|optional>, don't write player count to use the value at cfg. (Cfg will be created after first run of the plugin.)

Player Count Value: 0-32 (0 distributes all players to teams)



sm_cfmswap <name> , swaps player to other team.

sm_cfmspec <name>, swaps player to spectator mode.





Admin Menu;

this is what I use in my adminmenu_custom.cfg;




Code:


  "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 #1"

  "execute" "player"

  "1"

  {

    "type"  "player"

    "method" "name"

    "title"  "Switch player"

  }

  }

  "Switch to Spec"

  {

  "admin" "sm_admin"

  "cmd"  "sm_cfmspec #1"

  "execute" "player"

  "1"

  {

    "type"  "player"

    "method" "name"

    "title"  "Send Spec"

  }

  }






Changelog

v1.0, 2012-06-01

* Initial release.





Confession;

I'm new to sourcemod so I don't know if this works with other games but I'm using it with CS:S without problems.







Hope it will be useful..

Live long and prosper!















Attached Files





File Type: sp


Get Plugin or
Get Source (sm_chooseforme.sp - 4.7 KB)








Orignal From: [CS:S] Choose for me (team randomizer) (V1.0, 2012-06-01)

No comments

Not a single link is allowed to submit in comment :o