daily pastebin goal
80%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Client side queue
  2. _player = getplayerUID player;
  3.  
  4. queue_add = [0,_player];
  5. publicvariableserver "queue_add";
  6. waituntil {uisleep 0.2; !isNil "queue_respond"};
  7.  
  8. //publicvariableserver queue_request;
  9.  
  10. private "_search";
  11.  
  12. _sleep = diag_ticktime;
  13. allow_loading = false;
  14.  
  15. while {true} do {
  16.  
  17.     _search = queue_respond find playerUID;
  18.     if (_search == 0) exitwith {allow_loading = true;};
  19.     if ((diag_ticktime - _sleep) >= 120) exitwith {};
  20. };
  21.  
  22. //Server side queue
  23.  
  24. "queue_add" addPublicVariableEventHandler {
  25.  
  26.     queue = queue + _this select 1;
  27.    
  28. };
  29.  
  30.  
  31. while {true} do {
  32.     {
  33.         _penis = dayz_serverPUIDarray find _x;
  34.         if (_penis > -1) then {queue = queue - [_x]};
  35.         _x publicvariableclient "queue_respond";
  36.     } foreach queue;
  37.     uisleep 5;
  38. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Pastebin PRO 'WINTER SPECIAL'!
Get 40% OFF Pastebin PRO accounts!
 
Top