Vote Mod/Team Balance Mod

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
BBmac
Sergeant
Posts: 54
Joined: Sat Oct 28, 2006 6:05 am

Vote Mod/Team Balance Mod

Post by BBmac »

Hello... I need your help once again.

Is there already a vote mod or can you help me make one where the votes turn on and off automatically say like 2 mins votes on 3 mins votes off and it loop? I tried doing that with something like:

Code: Select all

g_allowvote 1
wait 120
g_allowvote 0
but it didnt work. Do I need to loop it or something?


Also I need a Team Balance mod. Like if the difference of players gets 3 or above then it automatically balances them out. Or another idea i liked was that you not be able to choose your team (unless teams are already balanced) and the server automatically puts you on a team. Anything to keep them balanced without admin there will do though.

Can you help me?
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

how about this -

this lets you vote the first and last minute

Code: Select all

	local.vote = 1
	setcvar g_allowvote local.vote

	wait 60

	local.vote = 0
	setcvar g_allowvote local.vote

	level.vtimelimit = (int(getcvar timelimit)) 
	local.vtimelimit1 = level.vtimelimit
	level.votetimelimit = ((local.vtimelimit1 * 60) - 120)

	wait level.votetimelimit

	local.vote = 1
	setcvar g_allowvote local.vote
this would be the first 2 mins only

Code: Select all


	local.vote = 1
	setcvar g_allowvote local.vote

	wait 120

	local.vote = 0
	setcvar g_allowvote local.vote
BBmac
Sergeant
Posts: 54
Joined: Sat Oct 28, 2006 6:05 am

Post by BBmac »

k, thx! Ill test that out tonight sometime. Just add it to another one of my .scr(s) and make sure end comes behind it? Im thinking of just adding it to my tower.scr (puts ramps in water tower and allies base) because its already set to spawn at prespawn.
Post Reply