• 0
KevinClyde

How to make server allowed to take tow ropes in safe zone

Question

How to make server allowed to take tow ropes in safe zone? which code that i need to edit?

Share this post


Link to post
Share on other sites

7 answers to this question

  • 0

                I THINK THIS IS WHAT YOU ARE LOOKING FOR 

/////////////////////////////////////////////////////////////////////////////////////////

 
if !(ExilePlayerInSafezone) then 
{
    if ((getPosATL (vehicle player)) call ExileClient_util_world_isInTraderZone) then 
    {
        [] call ExileClient_object_player_event_onEnterSafezone; 
    };
    ExileClientPlayerLastSafeZoneCheckAt = diag_tickTime;
}
else 
{
    if (diag_tickTime - ExileClientPlayerLastSafeZoneCheckAt >= 60) then
    {
        if !((vehicle player) call ExileClient_util_world_isInTraderZone) then 
        {
            [] call ExileClient_object_player_event_onLeaveSafezone; 
        };
        ExileClientPlayerLastSafeZoneCheckAt = diag_tickTime;
    };
};

 

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////

name the file this ---------  ExileClient_object_player_safezone_checkSafezone.sqf

drop it in overrides 

 

go in to mpmission config.cpp  and add ------  ExileClient_object_player_safezone_checkSafezone = "fixes\ExileClient_object_player_safezone_checkSafezone.sqf";   --------- to the    class CfgExileCustomCode

Share this post


Link to post
Share on other sites
  • 1

SA_TOW_IN_EXILE_SAFEZONE_ENABLED = true; 

i have this in my init.sqf from the mission.pbo 

Share this post


Link to post
Share on other sites
Advertisement
  • 0
2 hours ago, stevesquared said:

                I THINK THIS IS WHAT YOU ARE LOOKING FOR 

/////////////////////////////////////////////////////////////////////////////////////////

 
if !(ExilePlayerInSafezone) then 
{
    if ((getPosATL (vehicle player)) call ExileClient_util_world_isInTraderZone) then 
    {
        [] call ExileClient_object_player_event_onEnterSafezone; 
    };
    ExileClientPlayerLastSafeZoneCheckAt = diag_tickTime;
}
else 
{
    if (diag_tickTime - ExileClientPlayerLastSafeZoneCheckAt >= 60) then
    {
        if !((vehicle player) call ExileClient_util_world_isInTraderZone) then 
        {
            [] call ExileClient_object_player_event_onLeaveSafezone; 
        };
        ExileClientPlayerLastSafeZoneCheckAt = diag_tickTime;
    };
};

 

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////

name the file this ---------  ExileClient_object_player_safezone_checkSafezone.sqf

drop it in overrides 

 

go in to mpmission config.cpp  and add ------  ExileClient_object_player_safezone_checkSafezone = "fixes\ExileClient_object_player_safezone_checkSafezone.sqf";   --------- to the    class CfgExileCustomCode

where is the  ExileClient_object_player_safezone_checkSafezone.sqf ? which .pbo file?

Share this post


Link to post
Share on other sites
  • 0

ok open notepad++ copy and paste what i posted then click file save as ,,, and name the file ------->>>>  ExileClient_object_player_safezone_checkSafezone.sqf    

then put that in the file named overrides thats inside you mission pbo if 

and not trying to be a d**k at all but if you just googled and looked thru the forms all the info is there people hate seeing people reposing about the same issue over and over when its been answered a few times before 

 

 

Share this post


Link to post
Share on other sites
  • 0
59 minutes ago, stevesquared said:

ok open notepad++ copy and paste what i posted then click file save as ,,, and name the file ------->>>>  ExileClient_object_player_safezone_checkSafezone.sqf    

then put that in the file named overrides thats inside you mission pbo if 

and not trying to be a d**k at all but if you just googled and looked thru the forms all the info is there people hate seeing people reposing about the same issue over and over when its been answered a few times before 

 

 

thanks for answer my question,i'll remember

Share this post


Link to post
Share on other sites
  • 0
4 hours ago, stevesquared said:

ok open notepad++ copy and paste what i posted then click file save as ,,, and name the file ------->>>>  ExileClient_object_player_safezone_checkSafezone.sqf    

then put that in the file named overrides thats inside you mission pbo if 

and not trying to be a d**k at all but if you just googled and looked thru the forms all the info is there people hate seeing people reposing about the same issue over and over when its been answered a few times before 

 

 

i tried but it didn't work somehow

Share this post


Link to post
Share on other sites
  • 0

did you add the line to your config.cpp in the mpmission folder 

in the config.cpp you are looking for this to add to 

 

 

class CfgExileCustomCode 
{
    ExileClient_gui_xm8_slide = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_slide.sqf";
    ExileClient_gui_xm8_show = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_show.sqf";
    ExileServer_system_territory_database_load = "ExAdClient\VirtualGarage\CustomCode\ExileServer_system_territory_database_load.sqf";
    ExileClient_gui_inventory_updatePopTabControls = "overrides\ExileClient_gui_inventory_updatePopTabControls.sqf";
    /*
        You can overwrite every single file of our code without touching it.
        To do that, add the function name you want to overwrite plus the 
        path to your custom file here. If you wonder how this works, have a
        look at our bootstrap/fn_preInit.sqf function.

        Simply add the following scheme here:

        <Function Name of Exile> = "<New File Name>";

        Example:

        ExileClient_util_fusRoDah = "myaddon\myfunction.sqf";
    */
};

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.