Raised This Month: $12 Target: $400
 3% 

[TF2] Permanent Crit Vote


Post New Thread Reply   
 
Thread Tools Display Modes
Alan
Junior Member
Join Date: Jul 2011
Old 09-26-2015 , 16:21   Re: [TF2] Permanent Crit Vote
Reply With Quote #31

Hi there,

Would it be possible to set a minimum player count in order to start the votes? Like adding a startup parameter to check if for ex. 12 or more players connected and only if 12 (or more) players are on the server to start the vote?

For. example, the server will use tf_weapon_cirticals 1 until x (desired) number of players join and then issue a crit vote at the map start?
Alan is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 10-05-2015 , 02:37   Re: [TF2] Permanent Crit Vote
Reply With Quote #32

You can set "tf2_perm_crit_min_players" to the number you want (in your example 12). As soon as this number is reached a vote gets started. If there are already enough players there when the map starts, then the vote should start at map start.
It will not reset if players leave the server. The setting will stay till the next map starts.

This is untested. I just quickly edited the plugin.
Attached Files
File Type: sp Get Plugin or Get Source (tf2_perm_crit.sp - 246 views - 7.6 KB)
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de

Last edited by Sillium; 10-05-2015 at 03:04.
Sillium is offline
Reply


Thread Tools
Display Modes

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 06:24.


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