How to remove open cop slots



When you start playing Altis life, you will find that the first 4 cop slots are open to the public, you will need to make the following changes to close them.

  • Log in to your control panel
  • Head to Mpmissions and inside your mission file locate core/fn_initCop.sqf
  • Press the pencil next to this file to edit it

Press control + F and look for the following code:

if (!(str(player) in ["cop_1","cop_2","cop_3","cop_4"])) then {
    if ((FETCH_CONST(life_coplevel) isEqualTo 0) && (FETCH_CONST(life_adminlevel) isEqualTo 0)) then {
        ["NotWhitelisted",false,true] call BIS_fnc_endMission;
        sleep 35;
    };
};

Change this code to:

if (!(str(player) in ["cop_9999"])) then {
    if ((FETCH_CONST(life_coplevel) isEqualTo 0) && (FETCH_CONST(life_adminlevel) isEqualTo 0)) then {
        ["NotWhitelisted",false,true] call BIS_fnc_endMission;
        sleep 35;
    };
};


Press save then restart the server, this of course can also be done via FTP.
  • altislife, scripting, arma3
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Adding safe/no fire zones

Having trouble in certain trading areas, or just want to give your players a rest?Add this simple...

Altis Life Dogs

If you wish to add a dog to your Arma 3 server you will first need to add an AI, there is an...

Altis Life prices

To change the prices of things in Altis Life you need to do the following;STOP the server and...

Adding mods for Altis life 5.0

Adding mods for Altis life 5.0 can be more difficult that adding them for previous verions, as...