Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <macro.h>
- /*
- File: fn_initCop.sqf
- Author: Bryan "Tonic" Boardwine
- Description:
- Cop Initialization file.
- */
- private["_end"];
- _neededCopLevel = 1; //Benötigtes CopLevel für slots 4 bis 28
- 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"])) then {
- if((__GETC__(life_adminlevel) != 3)) then {
- ["Only4Admins",false,true] call BIS_fnc_endMission;
- sleep 30;
- [] call life_fnc_copDefault;
- };
- };
- if((str(player) in ["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","cop_20","cop_21","cop_22","cop_23","cop_24","cop_25","cop_26","cop_27","cop_28"])) then {
- if((__GETC__(life_coplevel) < _neededCopLevel) || (__GETC__(life_adminlevel) < 1)) then {
- ["Only4Whitelisted",false,true] call BIS_fnc_endMission;
- sleep 30;
- };
- };
- switch(__GETC__(life_coplevel)) do
- {
- case 1: {life_paycheck = life_paycheck + 1000;};
- case 2: {life_paycheck = life_paycheck + 3000;};
- case 3: {life_paycheck = life_paycheck + 5000;};
- case 4: {life_paycheck = life_paycheck + 8500;};
- case 5: {life_paycheck = life_paycheck + 12500;};
- case 6: {life_paycheck = life_paycheck + 25000;};
- case 7: {life_paycheck = life_paycheck + 50000;};
- };
- player setVariable["coplevel", __GETC__(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.
- [] spawn
- {
- while {true} do
- {
- waitUntil {uniform player == "U_Rangemaster"};
- player setObjectTextureGlobal [0,"textures\recruit_uniform_rangemaster.jpg"];
- waitUntil {uniform player != "U_Rangemaster"};
- };
- };
- [] spawn
- {
- while {true} do
- {
- waitUntil {uniform player == "U_B_CombatUniform_mcam_vest"};
- player setObjectTextureGlobal [0,"textures\cop_officer.jpg"];
- waitUntil {uniform player != "U_B_CombatUniform_mcam_vest"};
- };
- };
- [] spawn
- {
- while {true} do
- {
- waitUntil {uniform player == "U_B_SpecopsUniform_sgg"};
- player setObjectTextureGlobal [0,"textures\sek_uniform.paa"];
- waitUntil {uniform player != "U_B_SpecopsUniform_sgg"};
- };
- };
- [] spawn
- {
- while {true} do
- {
- waitUntil {uniform player == "U_B_CombatUniform_mcam"};
- player setObjectTextureGlobal [0,"textures\cop_captain.jpg"];
- waitUntil {uniform player != "U_B_CombatUniform_mcam"};
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment