Forum

> > CS2D > General > How to make Lua files
Forums overviewCS2D overviewGeneral overviewLog in to reply

English How to make Lua files

12 replies
To the start Previous 1 Next To the start

old How to make Lua files

mhd111
User Off Offline

Quote
i dont understand how to make a lua file so can some one teach me?

Admin/mod comment

"Can someone help?" is a VERY VERY VERY bad title! changed /DC

old Re: How to make Lua files

DoP3
User Off Offline

Quote
First you must understand lua language. Creating the file is very easy. Use notepad word pad or notepad++ to write your code then save it. When you save it, just rename it to[Any Name].lua (add ".lua" after your name((without the speech marks)))

to use it, usually in a server, go to new game/ more settings then go to mp_luaserver and set the name of your lua file (before doing this, you must put you lua file in cs2ddirectory/sys/lua

I made it as easy as I can

old Re: How to make Lua files

senar
User Off Offline

Quote
ok i know only small things in lua

parse("Thw command") (Example:parse("mp_antispeeder 0")

if you want give all players iteam or weapon use:

parse("equip "..p.." Wpn id")

or speed:parse("speedmod "..p.." speed 1-100")

ps.dot forget to write " its important

old Re: How to make Lua files

senar
User Off Offline

Quote
go to sys/lua folder then right click-new-New Text Document

then tybe what i sayd to you and save it as mylua.lua
for example

old Re: How to make Lua files

DoP3
User Off Offline

Quote
mhd111 has written
thank you all but i'm still confused

Can you make yourself clearer, what do you want? to make a lua script or you have a script and you want to make a file out of it???
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview