Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!(hasInterface)) exitwith {};
- if (isDedicated) exitwith {};
- private ["_trigger","_timer"];
- _trigger = _this select 0;
- _timer = 10;
- While {true} do
- {
- if ((vehicle player in (list _trigger))and(alive player)) then
- {
- if (_timer > 0) then
- {
- _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];
- titleText [_message, "PLAIN", 0.5, false, true];
- }
- else
- {
- titleText ["", "PLAIN", 0.5];
- };
- _timer = _timer - 1;
- if (_timer < 0) then {player setdamage 1;};
- }
- else
- {
- if (_timer < 5) then
- {
- titleText [" ", "PLAIN", 0.5];
- _timer = 5;
- };
- if (player in (list _trigger)) then
- {
- if ((alive player)and(!(player isKindOf "CAManBase"))) then
- {
- titleText [" ", "PLAIN", 0.5];
- };
- if (!(alive player)) then
- {
- titleText [" ", "PLAIN", 0.5];
- };
- };
- };
- uisleep 1;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement