Forum

> > CS2D > Scripts > Unlimited build
Forums overviewCS2D overview Scripts overviewLog in to reply

English Unlimited build

12 replies
To the start Previous 1 Next To the start

old Unlimited build

kerker
User Off Offline

Quote
And this is again my another topic on the forum today.
I called for the question how to make so all players was unlimited buildings.
Search did not give the desired results, where they are also fast (although I think it's good, but in this case it is not necessary) or they are all free ( also in this case not necessary.)
• My english is bad...

old Re: Unlimited build

Yates
Reviewer Off Offline

Quote
@user kerker: Is there anything you don't understand about the documentation? Your latest few questions are very basic and shouldn't really have been asked.

There are:
• Console commands
Want to change a server setting? You'll probably find it in this list.
• Lua Hooks
On an event (whever something happens) you can execute whatever you want.
• Lua Commands
Pretty self-explanitory.

You shouldn't ask questions before you have checked the documentation out, you will learn more by trying it yourself. Don't worry if you think you won't get it, trust me, no one got "code" their first try.

old Re: Unlimited build

kerker
User Off Offline

Quote
user GeoB99 has written
Use cs2d cmd mp_building_limit and change the value for every building to 999. No code or anything Lua scripting related needed. √

Thanks, but I have some questions:
• should I write a command for each type of building separately?
• Can be me write it in server.cfg, or where???
• This setting will be off on the next map?

old Re: Unlimited build

Talented Doge
User Off Offline

Quote
1. You should write a line for every type of building that you want it to be unlimited.

2. You can write it in server.cfg, but it will possibly be overwritten the next time you change your server settings.

3. It will be gone when you change your map/restart your server if you change the limits in-game.

What you need to do: Write for every building you want it to be unlimited, and save the file as a .lua file, and put it in lua/autorun.

old Re: Unlimited build

kerker
User Off Offline

Quote
user Talented Doge has written
.
What you need to do: Write for every building you want it to be unlimited, and save the file as a .lua file, and put it in lua/autorun.

Me try, but it`s no working.
1
mp_building_limit "Turret" 999

old Re: Unlimited build

Masea
Super User Off Offline

Quote
Where did you write it? Console? If yes, then try this;
mp_building_limit turret 999

If you're writing that on .lua files, use this;
parse("mp_building_limit turret 999")

Because while you writing CS2D Console Commands in .lua, you must use cs2d lua cmd parse.

old Re: Unlimited build

Lobwver
User Off Offline

Quote
Quote
3.Nope.Unless you can set @cs2d cmd mp_building_limit 0 again.

what?

You have to write the limit to every cons.
as example: mp_building_limit turret / dispenser / "gate field"

btw, the problem seems solved
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview