fn_initCop.sqf
#include "..\script_macros.hpp"
/*
File: fn_initCop.sqf
Author: Bryan "Tonic" Boardwine
Description:
Cop Initialization file.
*/
private "_end";
player addRating 9999999;
waitUntil {!(isNull (findDisplay 46))};
_end = false;
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"])) then {
if ((FETCH_CONST(life_coplevel) isEqualTo 0) && (FETCH_CONST(life_adminlevel) isEqualTo 0)) then {
["NotWhitelisted",false,true] call BIS_fnc_endMission;
sleep 35;
};
//};
player setVariable ["copLevel",(FETCH_CONST(life_coplevel)),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.
fn_initMedic.sqf
#include "..\script_macros.hpp"
/*
File: fn_initMedic.sqf
Author: Bryan "Tonic" Boardwine
Description:
Initializes the medic..
*/
private["_end"];
player addRating 99999999;
player setVariable["medrank",(FETCH_CONST(life_medicLevel)),true];
waitUntil {!(isNull (findDisplay 46))};
if ((FETCH_CONST(life_medicLevel)) < 1 && (FETCH_CONST(life_adminlevel) isEqualTo 0)) exitWith {
["Notwhitelisted",false,true] call BIS_fnc_endMission;
sleep 35;
};
if (LIFE_SETTINGS(getNumber,"restrict_medic_weapons") isEqualTo 1) then {
[] spawn {
for "_i" from 0 to 1 step 0 do {
waitUntil {sleep 3; currentWeapon player != ""};
removeAllWeapons player;
};
};
};
[] 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.