Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

owner_2019
 Udostępnij

2 Attachments

Rekomendowane odpowiedzi

Description

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;
 

 

 "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"
   }

 

 

Changelog

 

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. 
 

Pobierz:

 

sm_chooseforme.sp

sm_chooseforme.zip

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

×
×
  • Dodaj nową pozycję...