Jump to content

clemontine36

Member
  • Posts

    67
  • Joined

  • Last visited

Posts posted by clemontine36

  1. 18:10:07   Error position: <_x knowsAbout EastMHQ > 0} count [WestSl>
    18:10:07   Error Undefined variable in expression: _x
    18:10:07 File ca\missions\MPScenarios\MP_WarWelcome.utes\init.sqf, line 22
    18:10:07 Error in expression <e "Init.sqf8", ""]] call RE;
     
    Got this after using that fix?
    It crashed the server!
  2. D

     

    Add this to fnselfactions:

     

    //deploy bike
    if (("PartGeneric" in _mags) && ("PartWheel" in _mags) && ("ItemToolbox" in _itemsPlayer)) then {
            hasBikeItem = true;
        } else { hasBikeItem = false;};
        if((speed player <= 1) && hasBikeItem && _canDo) then {
            if (s_player_deploybike < 0) then {
                s_player_deploybike = player addaction[("<t color="#FFFF00"">" + ("Construct Bike") +"</t>"),"custom\make_bike.sqf","",5,false,true,"", "];
            };
        } else {
            player removeAction s_player_deploybike;
            s_player_deploybike = -1;
    };

     

    Deploy bike script:

    if (dayz_combat == 1) then {
    cutText [format["You are in combat and cannot build a bike."], "PLAIN DOWN"];
    } else {
    private ["_object"];
    player removeAction s_player_deploybike;
    player playActionNow "Medic";
    r_interrupt = false;
    player removeMagazine "PartGeneric";
    player removeMagazine "PartWheel";
    _dis=10;
    _sfx = "repair";
    [player,_sfx,0,false,_dis] call dayz_zombieSpeak;
    [player,_dis,true,(getPosATL player)] spawn player_alertZombies;

    sleep 6;

    _object = createVehicle ["Old_bike_TK_INS_EP1", position player,[],0,"CAN_COLLIDE"];
    _object setVariable ["ObjectID", "1", true];
    _object setVariable ["ObjectUID", "1", true];

    player reveal _object

    cutText [format["You've bodged together a bike!"], "PLAIN DOWN"];

    r_interrupt = false;
    player switchMove "";
    player playActionNow "stop";

    sleep 10;

    cutText [format["Warning: Spawned Bikes do not save after server restart!"], "PLAIN DOWN"];

    };

    Do these bikes cleanup on restart?

    thanks

  3. I add custom buildings by editing the mission.sqf with the "if server stuff etc."

     

    I used to have them through the server PBO, but alot of them double spawned,so ive tried putting them in via init.

     

    I have the path right etc, but a single file with 1 MGB Killhouse wont work?

     

    Or any of the files that include killhouses?

     

    So i can either have it on the server PBO, and have it double spawn.

     

    Or have it via mission file? and it doesn't spawn?

     

    Any ideas?

  4. Recently switched to overpoch with most things working, players install overwatch and add the launch parameter, and half of them keep getting kicked with the grey message:

     

    Dayzconfig player kicked off

    "playername" has disconnected 

     

    There are no script restrictions or error numbers?

    Anyone know the problem? 

  5. Well thanks alot axeman, your question reminded me i could call the buildings via mission file instead of server pbo, so i commented out them in the server file, and added them into the init. Now they only spawn once!

    Thanks:D Been stuck on this for a couple of weeks now!

  6. Im sorry but since infiSTAR has updated recently, and all the comments here confuse me a little,

    is there anyway to get this working for players that arent admins in game?

    Maybe without editting infiSTAR settings, as the admintools come with my server, and the host doesnt allow us to access them.

    I have it working for admins, but would be awesome if players could use it?

    thanks 

×
×
  • Create New...