Forum

> > CS2D > Scripts > How to put 2 scripts in 1 server?
Forums overviewCS2D overview Scripts overviewLog in to reply

English How to put 2 scripts in 1 server?

10 replies
To the start Previous 1 Next To the start

old Re: How to put 2 scripts in 1 server?

BountyHunter
User Off Offline

Quote
yeah i know, for example if classmod admin menu if F3 and same in HC admin script then it can be a problem. i mean. i'll have to script more to make it work properly.
thx for help!

old Re: How to put 2 scripts in 1 server?

Kirito2K
User Off Offline

Quote
@user BountyHunter: It's better to check the both script's hooks , if there is same hook , then you need to edit one script of those two .

My other solution is changing the keys to the menus , like Press Flashlight to open a menu or say !menuclass to open a menu , thats easy thing .

old Re: How to put 2 scripts in 1 server?

Raaj Nadar
User Off Offline

Quote
it is not about save hook it will not disturb is as both will be executed but the function with the higher priority will be accepted.

Example :-

Spoiler >


Thought they have the same hook but the lua which is appropriate for the situation it will be executed.

Spoiler >

Scripts by TKD

I think you can understand my point of view.
And if the script use the same buttons like server action then you have to edit it and change the key used.

old Re: How to put 2 scripts in 1 server?

hacked
User Off Offline

Quote
There is something called server.lua in sys/lua. Put this 2 lines:
1
2
dofile("sys/lua/"insertluanamehere".lua")
dofile("sys/lua/"sameasabove".lua")

Then set the server's lua to default ones. Done.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview