SHARE
TWEET

Untitled

a guest Feb 17th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <macro.h>
  2. /*
  3.     File: fn_initCop.sqf
  4.    
  5.    
  6.     Description:
  7.     Cop Initialization file.
  8. */
  9.  
  10. // TFR Variables API
  11. tf_no_auto_long_range_radio = true;
  12. player setVariable ["copLevel",1,true];
  13. TF_terrain_interception_coefficient = 1;
  14.  
  15. private["_end"];
  16. player addRating 9999999;
  17. waitUntil {!(isNull (findDisplay 46))};
  18. _end = false;
  19. if(life_blacklisted) exitWith
  20. {
  21.     ["Blacklisted",false,true] call BIS_fnc_endMission;
  22.     uiSleep 30;
  23. };
  24.  
  25. if((__GETC__(life_coplevel) == 0) && ((life_adminlevel2) == 0)) then {
  26.     ["NotWhitelisted",false,true] call BIS_fnc_endMission;
  27.     uiSleep 35;
  28. };
  29. command = false;
  30. if(__GETC__(life_coplevel) > 5) then {
  31.     command = true;
  32. };
  33. player setVariable["rank",(__GETC__(life_coplevel)),true];
  34.  
  35. if(life_is_arrested) then
  36. {
  37.     jail_money_init = false;
  38.     [false,false,life_arrestMinutes,life_arrestReason] call life_fnc_jailSetup;
  39. } else {
  40.     jail_money_init = true;
  41.     [] call life_fnc_spawnMenu;
  42.     waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
  43.     waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
  44. };
  45.  
  46. if(life_karma > 999) then {
  47.     karma_level = life_karma / 400;
  48.     karma_level = floor (karma_level);
  49. } else {
  50.     karma_level = 0;   
  51. };
  52.  
  53. if(karma_level > 80) then {
  54.     karma_level = 80;
  55. };
  56. [format["Your reputation level is %1",karma_level], false] spawn domsg;
  57.  
  58.  
  59. player setUnitRecoilCoefficient 2.8;
  60. uiSleep 2;
  61. ["EMS FREQ: 33.1 / CO FREQ: 33.2 / SO FREQ: 33.3 to 33.9", false] spawn domsg;
  62.  
  63. player unassignItem "tf_fadak_1";
  64. player removeItem "tf_fadak_1";
  65.  
  66. player removeitem "tf_rf7800str";
  67. player unassignItem "tf_rf7800str";
  68.  
  69. player removeitem "tf_anprc152";
  70. player unassignItem "tf_anprc152";
  71.  
  72. player additem "tf_anprc152";
  73. player assignitem "tf_anprc152";
RAW Paste Data
Top