Jump to content

Nocturis

Member
  • Content Count

    1
  • Joined

  • Last visited

  • Medals

Everything posted by Nocturis

  1. Nocturis

    Altis Life RPG

    You have to edit mission file /core/fn_initCop.sqf There is some code errors in orinal file from tonic. case ([color="#FF0000"]![/color](str(player) in ["cop_1","cop_2","cop_3","cop_4"])): { switch (true) do { case(life_coplevel > 0) : {}; // Do nothing case (life_adminlevel > 0) : {}; //Do nothing default {endMission "Loser";}; }; }; Remove the red ! and put a space between "case" and "(life_coplevel > 0)" for fix the code. You can modify that code for do what you want, if you want add more cops to the whitelist add cop id to ["cop_1","cop_2","cop_3","cop_4"]. Cops slots id are located in mission.sqm. You can setup adminlevel and coplevel to your database. Here is an example of my fn_initCop.sqf. 3 cops slots for adminlevel > 0 and all other slots for coplevel > 0 /* File: fn_initCop.sqf Author: Bryan "Tonic" Boardwine Description: Cop Initialization file. */ player addRating 9999999; waitUntil {!(isNull (findDisplay 46))}; [] spawn life_fnc_copMarkers; if(life_blacklisted) exitWith { endMission "Loser"; }; switch (true) do { case ((str(player) in ["cop_2","cop_3","cop_4","cop_5","cop_6","cop_7","cop_8","cop_9","cop_10","cop_11","cop_12","cop_13","cop_14","cop_15","cop_18","cop_19","cop_20","cop_21","cop_22","cop_23"])): { switch (true) do { case (life_coplevel > 0) : {}; // Do nothing case (life_adminlevel > 0) : {}; //Do nothing default {endMission "Loser";}; }; }; case (str(player) in ["cop_1","cop_16","cop_17"]): { if(life_adminlevel < 1)then {endMission "Loser"; } else { }; }; }; [] call life_fnc_spawnMenu; waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open. waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done. Sorry for my bad english, i hope it help. If you want any help for custom fn_initCop.sqf , feel free to PM me.
×