_teleports_locations = [ [2194.91,12838.1,0.00143433, "Войти в бункер", 14657.8,14696,1.56864], [14657.8,14696,1.56864, "Выйти из бункера", 2194.91,12838.1,0.00143433], [3915.79,10776.2,0.0, "Moscow Metro", 5615.73,10776.2,0.0] ];
{ if ((player distance [(_x select 0), (_x select 1), (_x select 2)]) < 8) then { // 8 - Teleport checkpoint radius if (s_player_onteleport < 0) then { s_player_onteleport = player addAction [format["%1"], (_x select 3)],"scripts\teleporter.sqf",[_x], 6, false, true,"",""]; } else { player removeAction s_player_onteleport; s_player_onteleport = -1; }; }; } forEach _teleports_locations;