Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <macro.h>
- /*
- File: fn_initCop.sqf
- Description:
- Cop Initialization file.
- */
- // TFR Variables API
- tf_no_auto_long_range_radio = true;
- player setVariable ["copLevel",1,true];
- TF_terrain_interception_coefficient = 1;
- private["_end"];
- player addRating 9999999;
- waitUntil {!(isNull (findDisplay 46))};
- _end = false;
- if(life_blacklisted) exitWith
- {
- ["Blacklisted",false,true] call BIS_fnc_endMission;
- uiSleep 30;
- };
- if((__GETC__(life_coplevel) == 0) && ((life_adminlevel2) == 0)) then {
- ["NotWhitelisted",false,true] call BIS_fnc_endMission;
- uiSleep 35;
- };
- command = false;
- if(__GETC__(life_coplevel) > 5) then {
- command = true;
- };
- player setVariable["rank",(__GETC__(life_coplevel)),true];
- if(life_is_arrested) then
- {
- jail_money_init = false;
- [false,false,life_arrestMinutes,life_arrestReason] call life_fnc_jailSetup;
- } else {
- jail_money_init = 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.
- };
- if(life_karma > 999) then {
- karma_level = life_karma / 400;
- karma_level = floor (karma_level);
- } else {
- karma_level = 0;
- };
- if(karma_level > 80) then {
- karma_level = 80;
- };
- [format["Your reputation level is %1",karma_level], false] spawn domsg;
- player setUnitRecoilCoefficient 2.8;
- uiSleep 2;
- ["EMS FREQ: 33.1 / CO FREQ: 33.2 / SO FREQ: 33.3 to 33.9", false] spawn domsg;
- player unassignItem "tf_fadak_1";
- player removeItem "tf_fadak_1";
- player removeitem "tf_rf7800str";
- player unassignItem "tf_rf7800str";
- player removeitem "tf_anprc152";
- player unassignItem "tf_anprc152";
- player additem "tf_anprc152";
- player assignitem "tf_anprc152";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement