Advertisement
infiSTAR23

Server White-List

Apr 1st, 2014
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.71 KB | None | 0 0
  1. if (!isServer) then
  2. {
  3.     _whitelisted_UIDs = ['123','123','123','123','123','123','123','123',
  4.     '123','123','123','123','123','123','123','123','123','123','123','123',
  5.     '123','123','123','123','123','123','123','123','123','123','123','123',
  6.     '123','123','123','123','123','123','123','123','123','123','123','123',
  7.     '123','123','123','123','123','123','123','123','123','123','123','123',
  8.     '123','123','123','123','123','123','123','123','123','123','123','123'];
  9.     [_whitelisted_UIDs] spawn {
  10.         waitUntil {getPlayerUID player != ''};
  11.         _puid = getPlayerUID player;
  12.         _list = _this select 0;
  13.         if !(_puid in _list) then
  14.         {
  15.             endLoadingScreen;
  16.             [] spawn {
  17.                 startLoadingScreen ['You are not on the WHITE-LIST','RscDisplayLoadCustom'];
  18.                 sleep 1;
  19.                 progressLoadingScreen 0.1;
  20.                 sleep 1;
  21.                 progressLoadingScreen 0.2;
  22.                 sleep 1;
  23.                 progressLoadingScreen 0.3;
  24.                 sleep 1;
  25.                 progressLoadingScreen 0.4;
  26.                 sleep 1;
  27.                 progressLoadingScreen 0.5;
  28.                 sleep 1;
  29.                 progressLoadingScreen 0.6;
  30.                 sleep 1;
  31.                 progressLoadingScreen 0.7;
  32.                 sleep 0.5;
  33.                 progressLoadingScreen 0.8;
  34.                 sleep 0.5;
  35.                 progressLoadingScreen 0.9;
  36.                 sleep 0.5;
  37.                 progressLoadingScreen 1;
  38.                 sleep 0.5;
  39.                 endLoadingScreen;
  40.                 _PS = '#particlesource' createVehicleLocal getPos vehicle player;
  41.                 _PS setParticleCircle [0, [0, 0, 0]];
  42.                 _PS setParticleRandom [0, [10, 10, 0], [0.25, 0.25, 0], 0, 1.5, [0, 0, 0, 0], 0, 0];
  43.                 _PS setParticleParams [['\Ca\Data\flag_usa_co.paa', 8, 3, 1],
  44.                 '', 'SpaceObject', 1, 10, [0, 0, 30], [0, 0, -2], 1, 10, 1, 0.2, [5, 5],
  45.                 [[1, 1, 1 ,1], [1, 1, 1, 1], [1, 1, 1, 1]], [0, 1], 1, 0, '', '', vehicle player];
  46.                 _PS setDropInterval 0.04;
  47.             };
  48.         };
  49.     };
  50. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement