DarkSilencer

Untitled

Jan 20th, 2016
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 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. private "_end";
  10. player addRating 9999999;
  11. waitUntil {!(isNull (findDisplay 46))};
  12. _end = false;
  13.  
  14. if(life_blacklisted) exitWith {
  15. ["Blacklisted",false,true] call BIS_fnc_endMission;
  16. sleep 30;
  17. };
  18.  
  19. if((FETCH_CONST(life_coplevel) == 0) && (FETCH_CONST(life_adminlevel) == 0)) then {
  20. ["NotWhitelisted",false,true] call BIS_fnc_endMission;
  21. sleep 35;
  22. };
  23.  
  24.  
  25. player setVariable["rank",(FETCH_CONST(life_coplevel)),true];
  26. [] call life_fnc_spawnMenu;
  27. waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
  28. waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
  29. [] call life_fnc_playerSkins;
Add Comment
Please, Sign In to add comment