Advertisement
Guest User

Untitled

a guest
May 27th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. #include <macro.h>
  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. if(life_blacklisted) exitWith
  14. {
  15.     ["Blacklisted",false,true] call BIS_fnc_endMission;
  16.     sleep 30;
  17. };
  18.  
  19. if(!(str(player) in [""])) then {
  20.     if((__GETC__(life_coplevel) == 0) && (__GETC__(life_adminlevel) == 0)) then {
  21.         ["NotWhitelisted",false,true] call BIS_fnc_endMission;
  22.         sleep 35;
  23.     };
  24. };
  25.  
  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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement