friquentin

Untitled

Dec 8th, 2018
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 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_99"])) 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. player setVariable ["copLevel",(FETCH_CONST(life_coplevel)),true];
  24. player setVariable ["rank",(FETCH_CONST(life_coplevel)),true];
  25. player setVariable ["tf_sendingDistanceMultiplicator", 100.0, true];
  26. ACE_Medical_menu_useMenu = 0;
  27.  
  28. ["ColorBLUFOR"] spawn life_fnc_initMarkers;
  29.  
  30. [] call life_fnc_spawnMenu;
  31. [] spawn life_fnc_placeablesInit;
Add Comment
Please, Sign In to add comment