Forum

> > CS2D > Scripts > Auto restart script
Forums overviewCS2D overview Scripts overviewLog in to reply

English Auto restart script

13 replies
To the start Previous 1 Next To the start

old Auto restart script

Inflexion
User Off Offline

Quote
Hello people, I'am back and I need some help from you.

I started back my server and I currently need a script that matches the following:

When a team wins 4 rounds, the round must restart without any admin does it.

Regards,
Jepo.
edited 1×, last 21.09.15 01:55:35 pm

old Re: Auto restart script

Yates
Reviewer Off Offline

Quote
user Inflexion has written
Regards,
Thanks.

Hello Thanks,

I have a few questions for you:
· What gamemode?
· When is a round defined? - CS2D round? Scripted round count?
· Why did your parents call you "Thanks"?

Regards,

Yates.

old Re: Auto restart script

Yates
Reviewer Off Offline

Quote
So you want to restart the round after the round has been restarted on the round count of 4?

This is what you're telling me right now. Elaborate your post.

old Re: Auto restart script

Yates
Reviewer Off Offline

Quote
When does a team win?

You're telling me that this is the standard game mode, which means when one team wins the round restarts, and after this has happened four times you want to restart the round again? (Makes no sense because the round just restarted).

You need to elaborate your posts. I have no idea what you are on about.

Again, from the beginning, but now explained in detail:

You want the round to restart when, why and how is it defined?

old Re: Auto restart script

J192
User Off Offline

Quote
But the round automatically restarts once a team wins. Do you mean you want to restart the server? Do you mean you want the teams to swap? Do you mean you want to reset the score?

old Re: Auto restart script

Starkkz
Moderator Off Offline

Quote
cs2d cmd sv_restart has written
This also resets the player stats (score/kills/deaths) and the team win scores. Moreover it resets the "time on map"-counter for mp_timelimit.

To me it does sound logic.

old Re: Auto restart script

Inflexion
User Off Offline

Quote
...,

@user J192: I mean the round restarts, not the whole server. Here what I mean: When a team wins 4 times in a row
then the round restarts. like in Fws

old Re: Auto restart script

Yates
Reviewer Off Offline

Quote
Bagelbox has written
Sep 21, 2015 at 2:18 PM - tontoned: he basicly wants the doghouse script
Sep 21, 2015 at 2:20 PM - tontoned: on doghouse, each new round you gain a new weapon, but if your team win too much rounds, then the game "restart"
Sep 21, 2015 at 2:21 PM - tontoned: that just mean that in new startround you lose all your weapon

Is this what you want?

old Re: Auto restart script

Paulo49
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
rounds = 0

addhook("endround","_end")
function _end(id)
if mode == 1 then
rounds = rounds +1
if rounds == 5 then
parse("restart")
elseif mode == 2 then
rounds = rounds +1
if rounds == 5 then
parse("restart")
end
end
end
end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
rounds = 0

addhook("endround","_end")
function _end(id)
if mode == 1 then
rounds = rounds +1
if rounds == 5 then
parse("restart")
elseif mode == 2 then
rounds = rounds +1
if rounds == 5 then
parse("restart")
end
end
end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview