Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\script_macros.hpp"
- /*
- File: fn_initCop.sqf
- Author: Bryan "Tonic" Boardwine
- Description:
- Cop Initialization file.
- */
- waitUntil {!(isNull (findDisplay 46))};
- if (life_blacklisted) exitWith {
- ["Blacklisted",false,true] call BIS_fnc_endMission;
- sleep 30;
- };
- 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 {
- if((FETCH_CONST(life_coplevel) < 1) && (FETCH_CONST(life_adminlevel) == 0)) then {
- ["NotWhitelisted",false,true] call BIS_fnc_endMission;
- sleep 35;
- };
- };
- if(!(str(player) in ["cop_20","cop_21","cop_22","cop_23","cop_24"])) then {
- if((FETCH_CONST(life_nato) < 1) && (FETCH_CONST(life_adminlevel) == 0)) then {
- ["NotWhitelisted",false,true] call BIS_fnc_endMission;
- sleep 35;
- };
- };
- player setVariable ["rank",(FETCH_CONST(life_coplevel)),true];
- player setVariable ["rank",(FETCH_CONST(life_nato)),true];
- [] 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.
- [] call life_fnc_initPayChecks;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement