Forum

> > CS2D > Scripts > i need help with do-file:)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch i need help with do-file:)

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

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

Flacko
User Off Offline

Zitieren
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")

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

Devil-Thanh
GAME BANNED Off Offline

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

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

Bowlinghead
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht