Advertisement
Guest User

fn_initCop.sqf

a guest
Jun 8th, 2021
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.26 KB | None | 0 0
  1. #include "..\script_macros.hpp"
  2. /*
  3.     File: fn_initCop.sqf
  4.     Author: Bryan "Tonic" Boardwine
  5.  
  6.     Description:
  7.     Cop Initialization file.
  8. */
  9. waitUntil {!(isNull (findDisplay 46))};
  10.  
  11. if (life_blacklisted) exitWith {
  12.     ["Blacklisted",false,true] call BIS_fnc_endMission;
  13.     sleep 30;
  14. };
  15.  
  16. if(!(str(player) in ["cop_1","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_16","cop_17","cop_18","cop_19"])) then {
  17.     if((FETCH_CONST(life_coplevel) < 1) && (FETCH_CONST(life_adminlevel) == 0)) then {
  18.      ["NotWhitelisted",false,true] call BIS_fnc_endMission;
  19.       sleep 35;
  20.    };
  21. };
  22.  
  23. if(!(str(player) in ["cop_20","cop_21","cop_22","cop_23","cop_24"])) then {
  24.     if((FETCH_CONST(life_nato) < 1) && (FETCH_CONST(life_adminlevel) == 0)) then {
  25.      ["NotWhitelisted",false,true] call BIS_fnc_endMission;
  26.       sleep 35;
  27.    };
  28. };
  29.  
  30.  
  31. player setVariable ["rank",(FETCH_CONST(life_coplevel)),true];
  32. player setVariable ["rank",(FETCH_CONST(life_nato)),true];
  33. [] call life_fnc_spawnMenu;
  34. waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
  35. waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
  36.  
  37. [] call life_fnc_initPayChecks;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement