Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Client side queue
- _player = getplayerUID player;
- queue_add = [0,_player];
- publicvariableserver "queue_add";
- waituntil {uisleep 0.2; !isNil "queue_respond"};
- //publicvariableserver queue_request;
- private "_search";
- _sleep = diag_ticktime;
- allow_loading = false;
- while {true} do {
- _search = queue_respond find playerUID;
- if (_search == 0) exitwith {allow_loading = true;};
- if ((diag_ticktime - _sleep) >= 120) exitwith {};
- };
- //Server side queue
- "queue_add" addPublicVariableEventHandler {
- queue = queue + _this select 1;
- };
- while {true} do {
- {
- _penis = dayz_serverPUIDarray find _x;
- if (_penis > -1) then {queue = queue - [_x]};
- _x publicvariableclient "queue_respond";
- } foreach queue;
- uisleep 5;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement