Forum

> > CS2D > Scripts > Random make t per round
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Random make t per round

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Random make t per round

limonata
User Off Offline

Zitieren
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.

alt Re: Random make t per round

Infinite Rain
Reviewer Off Offline

Zitieren
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.
1× editiert, zuletzt 21.05.13 13:57:42

alt Re: Random make t per round

limonata
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht