Page 1 of 1

Vote Mod/Team Balance Mod

Posted: Tue Apr 10, 2007 8:05 pm
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?

Posted: Tue Apr 10, 2007 9:16 pm
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

Posted: Tue Apr 10, 2007 9:29 pm
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.