[ANY] Team Vote Config Loader (TVC) ver. 0.1.6

I AM STILL EDITING THE PAGE!



(TVC) Team Vote Config Loader



Description



This plugin is made to start some configs after the both team vote. One team suggests config, and the other confirms it. No admins needed. Simple and easy.



To suggest a config a member of one of the team prints:

!cplay <SuperHardConfig>



Any player of the other team can confirm the config by one of the commands:

!confirm

or

!cplay <SuperHardConfig>



Or suggests their own variant:

!cplay <OtherSuperHardConfig>



Server admins can force a config by:

!forceplay <SuperHardConfig>



Then a server starts the config after delay by mask:


Code:


<prefix>_<SuperHardConfig>.cfg

Prefix and delay are configurable through CVAR.



Example:

There are number of configs at L4D1 server with Rotoblin plugin:


Code:


rotoblin_hardcore_4v4.cfg

rotoblin_hardcore_2v2.cfg

rotoblin_hardcore_4v4_hunters.cfg

rotoblin_hardcore_2v2_hunters.cfg


Then, the prefix will be:

sm_tvc_prefix "rotoblin_hardcore"



To suggest a config you need to type in chat one of the variants:

!cplay 4v4

!cplay 2v2

!cplay 4v4_hunters

!cplay 2v2_hunters




Also you can use !cfg or !load.



A player of the other team just types:

!confirm



And one of rotoblin_hardcore_*.cfg configs will be started after the delay sm_tvc_exec_delay (usually 3 seconds).



Generally the plugin is made for L4D1 Rotoblin competition configs as there is no other way to start a match as from admin menu, or by !execcfg or by comp_loader plugin. Comp Loader is not approved and has no source code and it can't start other configs except of files with 4v4, 2v2 and so on file mask.



Feature list
  • Number of configs can be created by prefix

  • Administration rights are not needed to vote for a config

  • Admin can force a config by simple command

  • Number of aliases availiable for !cplay - !cfg, !load



CVAR's List


Code:


// ConVars for plugin "teamvoteconfig.smx"





// Disable Comp Loader plugin and enable !load command through TVC.

// -

// Default: "1"

sm_tvc_comploader_disable "1"



// Delay to start voted config.

// -

// Default: "3.0"

sm_tvc_exec_delay "3.0"



// Prefix of config which will be added to its name.

// -

// Default: ""

sm_tvc_prefix ""


Command referense



!cplay ( or !cfg or !load) - Offer to play a config

!confirm - Confirm suggested config

!forceplay - Admin command to force of starting a config (need 'config' flag)















Attached Files








File Type: sp


Get Plugin or
Get Source (teamvoteconfig.sp - 9.1 KB)


File Type: zip


translations.zip (1.3 KB)








Orignal From: [ANY] Team Vote Config Loader (TVC) ver. 0.1.6

No comments

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