Forum

> > CS2D > Scripts > Once restart on map!
Forums overviewCS2D overview Scripts overviewLog in to reply

English Once restart on map!

47 replies
Page
To the start Previous 1 2 3 Next To the start

old closed Once restart on map!

Suprise
BANNED Off Offline

Quote
Hi there scripters. I just asking you. So:

> When I started a server I have a lua for add 15 bot for servers on map start! But when I started the server doesnt add bots a lua!
> I want to a lua who ONCE RESTART the game only 1 mapround.

Thanks in advance. I hope you understand my questions lol

old Re: Once restart on map!

Suprise
BANNED Off Offline

Quote
Man! This is ..ehh. So
Example: zm_laser_v1.lua (For map) I think you're helpful but not now
Or you Factis?

old Re: Once restart on map!

Deleted User

Quote
so u need add 15 bots once?

use:

1
2
3
for k = 1, 15 do
	parse('bot_add')
end

delete everything and add these three lines in server.lua

old Re: Once restart on map!

Suprise
BANNED Off Offline

Quote
user Infinite Rain has written
so u need add 15 bots once?

use:

1
2
3
for k = 1, 15 do
	parse('bot_add')
end

delete everything and add these three lines in server.lua


I dont need 15 bot just only 1 restart on map. Later When server changing the map then ONCE restart the map.
But thanks.

old Re: Once restart on map!

sheeL
User Off Offline

Quote
More >
edited 7×, last 02.03.12 07:31:39 pm

old Re: Once restart on map!

Deleted User

Quote
user Infinite Rain has written
user sheeL has written
user Suprise has written
user Infinite Rain has written
so u need add 15 bots once?

use:

1
2
3
for k = 1, 15 do
	parse('bot_add')
end

delete everything and add these three lines in server.lua


I dont need 15 bot just only 1 restart on map. Later When server changing the map then ONCE restart the map.
But thanks.


More >


---___---

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
addhook("startround","round")
function round()
parse("add_bot") -- 1
parse("add_bot") -- 2
parse("add_bot") -- 3
parse("add_bot") -- 4
parse("add_bot") -- 5
parse("add_bot") -- 6
parse("add_bot") -- 7
parse("add_bot") -- 8
parse("add_bot") -- 9
parse("add_bot") -- 10
parse("add_bot") -- 11
parse("add_bot") -- 12
parse("add_bot") -- 13
parse("add_bot") -- 14
parse("add_bot") -- 15
end

wrong

1
2
3
for id = 1, 15 do
	parse('bot_add')
end

right

old Re: Once restart on map!

Suprise
BANNED Off Offline

Quote
user sheeL has written
user Suprise has written
user Infinite Rain has written
so u need add 15 bots once?

use:

1
2
3
for k = 1, 15 do
	parse('bot_add')
end

delete everything and add these three lines in server.lua


I dont need 15 bot just only 1 restart on map. Later When server changing the map then ONCE restart the map.
But thanks.


More >


You tested this s**t Manivela! Sorry but If im put this for my script then AGAIN AND AGAIN RESTART!! AND I DONT WANT THIS! Or im wrong? Cuz sry for s**t

old Re: Once restart on map!

Deleted User

Quote
Now. Call your friend that know English well. tell him to translate your problem better. post here.

old Re: Once restart on map!

3RROR
User Off Offline

Quote
user sheeL has written
1
2
3
4
addhook("startround","_round")
function _round()
parse("restart")
end

If you add that. It autoloops...

old Re: Once restart on map!

Suprise
BANNED Off Offline

Quote
Trauma is well said. And sorry for my englsh
Ok. I dont have answear so..

@user Infinite Rain: Ok.. First: I dont need bots for now only restart hmm how to say it?! cookie
hmm..

timer(200"parse","restart")

This is correct?

Manivela:
Your is better?
To the start Previous 1 2 3 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview