edited 1×, last 31.08.11 04:00:13 pm
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
combining scripts
9 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
EDIT: lol. few seconds too late
![user](img/i_friend.png)
Just add two or more dofile lines in your server.lua file. You can execute up to lots of Lua scripts at the same time.
plus there is another important point: combining scripts does not always work without problems! be careful! scripts might use the same variables or the same hooks. in some cases you have to rewrite parts of the scripts or you have to use priorities for the
![cs2d lua cmd](img/i_codehelp.png)
EDIT: You can have unlimit addhooks (Of the same) if they all have a different variable.
edited 1×, last 31.08.11 04:10:29 pm
![user](img/i_friend.png)
yeah depends on the scripts.
plus there is another important point: combining scripts does not always work without problems! be careful! scripts might use the same variables or the same hooks. in some cases you have to rewrite parts of the scripts or you have to use priorities for the
addhook command (if hooked functions use the return value).
plus there is another important point: combining scripts does not always work without problems! be careful! scripts might use the same variables or the same hooks. in some cases you have to rewrite parts of the scripts or you have to use priorities for the
![cs2d lua cmd](img/i_codehelp.png)
![∗](img/star.gif)
![∗](img/star.gif)
![∗](img/star.gif)
![∗](img/star.gif)
![∗](img/star.gif)
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)