Forum

> > CS2D > Scripts > Random make t per round
Forums overviewCS2D overview Scripts overviewLog in to reply

English Random make t per round

5 replies
To the start Previous 1 Next To the start

old Random make t per round

limonata
User Off Offline

Quote
Hi guys. I tried to make a script but i couldnt.

Firstly all players will be teror. On the startround just one player will join ct it will be random. It will be same with endround.

My try;
Spoiler >


Thanks all.

old Re: Random make t per round

Infinite Rain
Reviewer Off Offline

Quote
1
2
3
4
5
6
7
addhook('endround', 'endround_hook')
function endround_hook(mode)
	for k, v in pairs(player(0, 'team2')) do
		parse('maket '.. v)
	end
	parse('makect '.. player(0, 'team1')[math.random(1, #player(0, 'team1'))])
end
Haven't tested it.
edited 1×, last 21.05.13 01:57:42 pm

old Re: Random make t per round

limonata
User Off Offline

Quote
I tested. But on the end of the round the ct should be teror. And random teror should be ct. But there is a two ct on the end of the round. It should be one.

And i cant make all terrorist.

I removed all bots. And joined the teror. Then I added a bot to terrorist then we were ct.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview