Forum

> > CS2D > Scripts > i need help with do-file:)
Forums overviewCS2D overview Scripts overviewLog in to reply

English i need help with do-file:)

7 replies
To the start Previous 1 Next To the start

old Re: i need help with do-file:)

Flacko
User Off Offline

Quote
By writing dofile("yourpath") in your server.lua you can execute a lua script.

For example, let's suppose that you downloaded a script from this forum and you saved it in CS2D/sys/lua/scriptname.lua

You have to open up server.lua in windows' notepad and write this at the end of the file:
1
dofile("sys/lua/scriptname.lua")

old Re: i need help with do-file:)

Devil-Thanh
GAME BANNED Off Offline

Quote
if you removed "--" in front of dofile...but it didn't do anything...please check your scripts
edited 1×, last 27.03.11 07:43:44 am

old Re: i need help with do-file:)

Bowlinghead
User Off Offline

Quote
Look in CS2D. On "New Game" there is on "More Settings" a General "mp_luaserver" look, if there is no "server.lua" than change that! Or enter in "mp_luaserver" the Script name! But than only 1 Lua script can be activatet.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview