English multiple scripts

8 replies
Goto Page
To the start Previous 1 Next To the start
19.11.11 12:33:01 am
Up
Doctard
User
Offline Off
i was wondering if you could use 2 lua's at the same time if you can plz tell me and i give you cookie
IMG:http://img269.imageshack.us/img269/8625/32068.gif
IMG:http://img847.imageshack.us/img847/5271/45142.gif
|\ ~|\ ~|\~~~\o/~~~~~~~
19.11.11 02:11:27 am
Up
J4x
User
Offline Off
Yes you can, but it all depends of the types of scripts.
Example: You can't use 2 classes ( I mean those where you can choose a class, like soldier and all that stuff) lua at the same time, tha may lead to trouble with menus (If the both use the same system).
19.11.11 02:31:54 am
Up
DevGru
User
Offline Off
user Doctard has written:
i was wondering if you could use 2 lua's at the same time if you can plz tell me and i give you cookie


Actually you can run more than 5 lua scripts but like Pwnisher said it depends on what type of script it is you are running.
IMG:http://steamsignature.com/status/default/76561198078087837.png
IMG:http://steamsignature.com/AddFriend.png
19.11.11 12:41:03 pm
Up
Stopieee
User
Offline Off
Me too

how do you do it?

I want to put my Tlex and Unlimitedbuild lua in one...

tell me how please or make a lua

Thanks cookie
19.11.11 12:46:06 pm
Up
KagamineLen
User
Offline Off
give me your lua i'll fix it for you
19.11.11 05:06:16 pm
Up
Doctard
User
Offline Off
IMG:http://img269.imageshack.us/img269/8625/32068.gif
IMG:http://img847.imageshack.us/img847/5271/45142.gif
|\ ~|\ ~|\~~~\o/~~~~~~~
19.11.11 05:35:07 pm
Up
DevGru
User
Offline Off
user KagamineLen has written:
give me your lua i'll fix it for you


*Mega facepalm*

@user Doctard: Steps

> Open your CS2D folder
> Open the sys folder
> Open the lua folder
> Open server.lua text file
> Write this on the bottom part:
Code:
1
2
dofile("sys/lua/<lua name.lua>")
dofile("sys/lua/<lua name.lua>")


• Note: Make sure you put the lua scripts on the lua folder.
IMG:http://steamsignature.com/status/default/76561198078087837.png
IMG:http://steamsignature.com/AddFriend.png
19.11.11 11:22:30 pm
Up
troctor
User
Offline Off
Well.. the thing is you CAN use 2 scripts at same time.. the problem is this:

If you have 2 hooks like:

Lua 1 has written:
addhook("spawn","ifspawn")


and in the other u have

Lua 2 has written:
addhook("spawn","onspawn")


And in the lua executer you has

Code:
1
2
dofile("sys/lua/Lua 2.lua")
dofile("sys/lua/Lua 1.lua")


It will only hook the lua of the Lua 2, because is the first lua readed. And what happens with the hook of Lua 1? It doesnt function.
IMG:http://files.myopera.com/Gaturronik/albums/7027902/Troctor%20cs2dplayer.png
20.11.11 01:31:49 am
Up
Apache uwu
User
Offline Off
user Stopieee has written:
Me too

how do you do it?

I want to put my Tlex and Unlimitedbuild lua in one...

tell me how please or make a lua

Thanks cookie


I believe you could just use parse. If it's quick build it should add in nicely. As long as they don't add any hooks that are taken.
To the start Previous 1 Next To the start