Forum

> > CS2D > General > How to make Lua files
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch How to make Lua files

12 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt How to make Lua files

mhd111
User Off Offline

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

Admin/Mod Kommentar

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

alt Re: How to make Lua files

DoP3
User Off Offline

Zitieren
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

alt Re: How to make Lua files

senar
User Off Offline

Zitieren
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

alt Re: How to make Lua files

senar
User Off Offline

Zitieren
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

alt Re: How to make Lua files

DoP3
User Off Offline

Zitieren
mhd111 hat geschrieben
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???
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht