Raised This Month: $ Target: $400
 0% 

Start a Alltalk vote at map start


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ms. Trooper
Senior Member
Join Date: Nov 2012
Old 06-22-2014 , 00:23   Start a Alltalk vote at map start
Reply With Quote #1

Hello,

I did a quick search, I might have missed it, but I would love a method to start votes automatically at the beginning of a map. Such as Alltalk.

Thanks!
Ms. Trooper is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-22-2014 , 16:10   Re: Start a Alltalk vote at map start
Reply With Quote #2

Execute Configs 1.0 (Updated 08/12/09)

...
in your server config file ...cfg/server.cfg, add
Code:
sm_executeconfigs_enabled 1
Then edit ...addons/sourcemod/configs/executeconfigs.txt
Code:
"Configs"
{
	"*"
	{
		//"clients:0"		"10:emptyserver.cfg"
		"clients:10"		"10:nonemptyserver.cfg"
		//"event:player_spawn"	"0:spawn.cfg"
		//"round:1"			"3:firstround.cfg"
		//"timeleft:0"	"1:timelimit.cfg"
	}
	"ctf"
	{
		//"event:ctf_flag_captured"	"2:flag_captured.cfg"
		//"round:2"			"5:secondround.cfg"
	}
	"cp_dustbowl"
	{
		//"timeleft:15"	"0:switchteams.cfg"
	}
}
Create file ...cfg/nonemptyserver.cfg and add
Code:
sm_votealltalk
sm_executeconfigs_enabled 0
Once client number reach to 10, it execute that config file nonemptyserver.cfg,
which again execute command sm_votealltalk and sametime disable plugin.
Server config file reset plugin cvar back on map change and whole process start again
Bacardi is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-23-2014 , 11:59   Re: Start a Alltalk vote at map start
Reply With Quote #3

When this vote should be done differs from game to game.

Example:

CS:GO shouldn't do map start votes until after the warmup round ends (if enabled).
TF2 shouldn't do map start votes until the Waiting For Players period ends.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Ms. Trooper
Senior Member
Join Date: Nov 2012
Old 06-23-2014 , 16:39   Re: Start a Alltalk vote at map start
Reply With Quote #4

Quote:
Originally Posted by Powerlord View Post
When this vote should be done differs from game to game.

Example:

CS:GO shouldn't do map start votes until after the warmup round ends (if enabled).
TF2 shouldn't do map start votes until the Waiting For Players period ends.
Good point. Now, how would one do that? haha
Ms. Trooper is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-23-2014 , 16:46   Re: Start a Alltalk vote at map start
Reply With Quote #5

Quote:
Originally Posted by Ms. Trooper View Post
Good point. Now, how would one do that? haha
SourceMod plugins can detect what the current game is using the GetEngineVersion command.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 06-24-2014 , 01:47   Re: Start a Alltalk vote at map start
Reply With Quote #6

Do you really need a new vote each map?
If not you could use the "Permanent Alltalk vote" Plugin I made on a request:
https://forums.alliedmods.net/showthread.php?p=1253856
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode