Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. if (!(hasInterface)) exitwith {};
  2. if (isDedicated) exitwith {};
  3.  
  4. private ["_trigger","_timer"];
  5.  
  6. _trigger = _this select 0;
  7. _timer = 10;
  8.  
  9. While {true} do
  10. {
  11. if ((vehicle player in (list _trigger))and(alive player)) then
  12. {
  13. if (_timer > 0) then
  14. {
  15. _message = format ["<t font='PuristaBold' color='#ff0000' shadow='2.5' size='3.5'><br/><br/>Покиньте запретную зону!</t><t font='PuristaBold' color='#000cff' shadow='2.5' size='4'>%1<br/><br/>%2</t>",localize "STR_GOBACKMESSAGE",_timer];
  16. titleText [_message, "PLAIN", 0.5, false, true];
  17. }
  18. else
  19. {
  20. titleText ["", "PLAIN", 0.5];
  21. };
  22.  
  23. _timer = _timer - 1;
  24. if (_timer < 0) then {player setdamage 1;};
  25. }
  26. else
  27. {
  28. if (_timer < 5) then
  29. {
  30. titleText [" ", "PLAIN", 0.5];
  31. _timer = 5;
  32. };
  33.  
  34. if (player in (list _trigger)) then
  35. {
  36. if ((alive player)and(!(player isKindOf "CAManBase"))) then
  37. {
  38. titleText [" ", "PLAIN", 0.5];
  39. };
  40. if (!(alive player)) then
  41. {
  42. titleText [" ", "PLAIN", 0.5];
  43. };
  44. };
  45. };
  46.  
  47. uisleep 1;
  48. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement