Forum

> > CS2D > Scripts > How to put 2 scripts in 1 server?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How to put 2 scripts in 1 server?

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

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

BountyHunter
User Off Offline

Zitieren
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!

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

Kirito2K
User Off Offline

Zitieren
@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 .

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

Raaj Nadar
User Off Offline

Zitieren
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.

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

hacked
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht