Forum
Scripts
How to create a lua?
How to create a lua?
12 replies
1

You post has nothing to do with Unreal Software.Maybe you can post it into CS2D/Scripts?
PS: Look at the Internet (Google) for searching Lua tutorials.
I don't know what "camansd" is supposed to be. I move it to the CS2D scripting section. hopefully this is the right place. correct me if I'm wrong.
(please stop posting threads in wrong sections of the forum. it is really annoying to move the stuff to the right places all the time! I'll simply trash future threads from you if you don't manage to post them in the correct section)
C:/Counter-Strike 2D/sys/lua/samples
btw Example
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
-- Made by Engin33r
addhook("parse","lolconsole")
function lolconsole(cmd)
if (cmd:sub(1,10)=="speedround") then
for _,id in ipairs(player(0,"table")) do
parse("speedmod "..id..""..cmd:sub(11))
end
end
end
You has written
guys how to create a lua like a comands please give me a sample like that
That is a Console Command.
The Lua commands are
i hope this help
http://www.cs2d.com/tut/tkdlua/luatut.html
cmd
cmd
hookThese should help, understand that no one can teach lua online, read a book, read the lua manual.
1

How to create a lua?
Offline