TheGamingChief

Untitled

May 14th, 2016
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. idleTime = 0;
  2.  
  3. while {true} do
  4. {
  5. _Playerpos = getPos player;
  6. _pos0 = _Playerpos select 0;
  7. _pos1 = _Playerpos select 1;
  8. _pos2 = _Playerpos select 2;
  9.  
  10. sleep 0.5;
  11.  
  12. _Playerposc = getPos player;
  13. _pos0c = _Playerposc select 0;
  14. _pos1c = _Playerposc select 1;
  15. _pos2c = _Playerposc select 2;
  16.  
  17. if ((_pos0 != _pos0c) and (_pos1 != _pos1c) and (_pos2 != _pos2c)) then
  18. {
  19. idleTime = 0;
  20. };
  21.  
  22. if (idleTime == 1140) then
  23. {
  24. titleText ["You have not moved in 19 minutes! You will be kicked to the lobby in 1 minute!", "BLACK"];
  25. sleep 5;
  26. titleText ["", "BLACK IN"];
  27. };
  28.  
  29. if (idleTime == 1200) then
  30. {
  31. titleText ["You have not moved in 20 minutes! You have been kicked to the lobby!", "BLACK"];
  32. sleep 6;
  33. failMission "END1";
  34. };
  35. sleep 0.5;
  36. idleTime = idleTime + 1;
  37. };
Advertisement
Add Comment
Please, Sign In to add comment