Forum
CS2D Scripts For LuaFor Lua
10 replies 1
1- Extract that lua in Counter Strike 2D/sys/lua/
2- Open Counter Strike 2D
3- Goto New Game
4- Goto More Setting
5- Find mp_luaserver
6- Change server.lua to THENAMEOFYOURLUA.lua
7- Click in Apply
8- Now you can start your server with dedicated or just click Start in that listen server
2nd form:
1- Goto Counter Strike 2D/sys/
2- Open "server.cfg"
3- Find mp_luaserver
4- Change "server.lua" to "nameofyourlua.lua"
5- Save
6- Close it
7- Done,
Why did you mean that?, that way is useful and faster than puting dofile in server.lua
Also that's why DC put that command.
Starkkz has written
Actually, it's useless because you can only use one script at the same time. Dofile might be harder to use for newbies but it's the best way to do it.
1. go to <YOUSCS2DPATH>(Most in C:\Counter-Strike 2D)\sys\lua
2. open server.lua with notepad
3. you will see some --dofile("sys/lua/blabla.lua")
4. put this at end of server.lua:
dofile("sys/lua/<YOULUANAME>.lua")
5. don't forgot to save...
there is a also sample script ready. just delete the -- before dofile
to disable script, just add -- before dofile
1
dofile "sys/lua/name.lua"
1
2
2
myfile="sys/lua/name.lua" dofile myfile
Apache uwu has written
It doesn't work with variables
1
2
2
myfile="sys/lua/name.lua" dofile myfile
No, but it works with tables too
Flacko has written
No, but it works with tables too
Apache uwu has written
It doesn't work with variables
1
2
2
myfile="sys/lua/name.lua" dofile myfile
No, but it works with tables too
does it support more than a parameter?
1