Jump to content
Sign in to follow this  
Langer0302

lk script pack

Recommended Posts

Script: htt p://www . armaholic . com/page . php?id=9023

It's all working, but I need help setting so I every unit I place has the Command menu. Here's the script that activates the scripts menu.

if ( (!isServer) && (player != player) ) then{};
if !(isnull player) then {
if (player == lkcom) then {hint "you are LKCOM"};
nul = [lkcom] execVM "lk\menu\close_menu.sqf";
lkcom addeventhandler ["Killed", {_this execVM "lk\var\lkcom_respawn.sqf"}];
coin setpos (getpos hq1d);
coin setvariable ["BIS_COIN_rules",[lkcom],true];
};

If any one could help me set different names in the editor that would enable the menu. Thanks!

Share this post


Link to post
Share on other sites

Try this in INIT.SQF:

UsingLKscript = ["LKCOM","JOHN",PETER","Molly"]; //Only they can access the LKscript.

if ( (!isServer) && (player != player) ) then {};

if !(isnull player) then {

if (vehicle player) in UsingLKscript then {

Hint "you are allowed to use LK Script";

nul = [player] execVM "lk\menu\close_menu.sqf";

player addeventhandler ["Killed", {_this execVM "lk\var\lkcom_respawn.sqf"}];

};

coin setpos (getpos hq1d);

coin setvariable ["BIS_COIN_rules", [LKCOM, JOHN, PETER, Molly],true]; // Only they have access to construction module.

};

But i'm not sure if that script is only built for LKCOM name. You should modify every script in this pack.

* And if you want this LK script to work on a Multiplayer mission you will need more intense changes.

Edited by kyopower

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×