Forum
CS2D Scripts MergingMerging
7 replies 1
Admin/mod comment
§2.1 - No needless and/or doubled posts (spam)Merging more scripts is not worth at all and it would lead to problems even worse.
@ Nixo, keep the scripts as separate files. There're files and folders for a reason: keeping everything clean and structured. Should you put both scripts into a single Lua file then you'll get more headache editing these scripts and fixing errors (I bet you'll post your bloated .lua file to us.de in a "help me fix that thing" thread) will become an horror for everyone.
All you need is to tell your server to load both (and possibly other) Lua scripts you have. The simplest way to accomplish that is to put the .lua files into /sys/lua/autorun/ and then those scripts will be executed AUTOMATICALLY. The lazy and simple way turns out to be the best way to do that.
You can do what VADemon said. But as an alternative, you can do files. Just create an empty Lua file and insert
1
2
2
dofile("sys/lua/<path to your unlimited building script>.lua") dofile("sys/lua/<path to your admin script>.lua")
1