MTASA TÜRK
Türkiye'nin En Güncel MTA Platformu


[YARDIM] Greenzone Teleport Kapatma

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı FreyZan

  • Yeni Üye
  • *
    • İleti: 4
: 05 Haziran 2017, 18:16:29
Ben sw me jail skripti koydum fakat f1 kapalı yeşil alanda ama teleport paneli ile çıkabiliyorlar nasıl kapatabilirim?
« Son Düzenleme: 06 Haziran 2017, 00:18:52 Gönderen: Narkoz »
 


MTASA TÜRK

[YARDIM] Greenzone Teleport Kapatma
« : 05 Haziran 2017, 18:16:29 »

Çevrimdışı Paradox

  • Kurucu
  • *
    • İleti: 741
  • SH Gaming
Yanıtla #1 : 05 Haziran 2017, 18:56:11
Greenzone ile teleport panelinizin kodlarını atarmısınız.
 


Çevrimdışı FreyZan

  • Yeni Üye
  • *
    • İleti: 4
Yanıtla #2 : 05 Haziran 2017, 18:57:35
Kod: lua
addEventHandler ("onResourceStart", getRootElement(), 
function()
  setTimer (moneyZoneTimerFunction, 2500, 0)
  local allGreenzones = getElementsByType ("radararea")
  for i,v in ipairs (allGreenzones) do
    local r,g,b,a = getRadarAreaColor (v)
    if (r == 0) and (g == 255) and (b == 0) and (a == 127) then
      local x,y = getElementPosition (v)
      local sx,sy = getRadarAreaSize (v)
      local col = createColCuboid (x,y, -50, sx,sy, 7500)
      setElementID (col, "greenzoneColshape")
    end
  end
end)
 
addEventHandler ("onColShapeHit", getRootElement(),
function(hitElement, matchingDimension)
  if (getElementType (hitElement) == "player") and (getElementID (source) == "greenzoneColshape") then
    toggleControl (hitElement, "fire", false)
    toggleControl (hitElement, "next_weapon", false)
    toggleControl (hitElement, "previous_weapon", false)
    toggleControl (hitElement, "sprint", false)
    toggleControl (hitElement, "aim_weapon", false)
    toggleControl (hitElement, "vehicle_fire", false)
    showPlayerHudComponent (hitElement, "ammo", false)
    showPlayerHudComponent (hitElement, "weapon", false)
    setElementData(hitElement, "Greenzone",true)
    triggerClientEvent (hitElement, "enableGodMode", hitElement)
  end
  if (source == moneyZoneCol) and (getElementType (hitElement) == "vehicle") then
    setElementVelocity (hitElement, 0, 0, 0)
    setElementPosition (hitElement, 2018.33, 1534.77, 12.37)
    setVehicleRotation (hitElement, 0,0,270)
    if (getVehicleOccupant (hitElement, 0)) then
      outputChatBox ("You can't enter the moneyzone with your car!", getVehicleOccupant (hitElement, 0), 255, 0, 0, false)
    end
  end
end)
 
addEventHandler ("onColShapeLeave", getRootElement(),
function(leaveElement, matchingDimension)
  if (getElementType (leaveElement) == "player") and (getElementID (source) == "greenzoneColshape") then
    toggleControl (leaveElement, "fire", true)
    toggleControl (leaveElement, "next_weapon", true)
    toggleControl (leaveElement, "previous_weapon", true)
    toggleControl (leaveElement, "sprint", true)
    toggleControl (leaveElement, "aim_weapon", true)
    toggleControl (leaveElement, "vehicle_fire", true)
    showPlayerHudComponent (leaveElement, "ammo", true)
    showPlayerHudComponent (leaveElement, "weapon", true)
    setElementData(leaveElement, "Greenzone",false)
    triggerClientEvent (leaveElement, "disableGodMode", leaveElement)
  end
end)
 
--money zone col
moneyZoneCol = createColCuboid (1993.12, 1519.14, -100, 17.43, 54.24, 117)
--stop moneyzone col
 
function moneyZoneTimerFunction ()
  local allPlayersInCol = getElementsWithinColShape (moneyZoneCol, "player")
  for i,v in ipairs (allPlayersInCol) do
    givePlayerMoney (v, 5)
  end
end
 
-- marker bij hospital
createMarker (1607.36, 1814.24, -10, "cylinder", 24, 0, 255, 0, 190, getRootElement())
Bu greenzone

Kod: lua
function Window ( )
        if ( guiGetVisible ( myWindow ) == true ) then   
       
                guiSetVisible ( myWindow, false )
 
                showCursor ( false )
        else     
                guiSetVisible ( myWindow, true )
 
                showCursor ( true )
        end
end
 bindKey ( "F6", "down", Window )
 
myWindow = guiCreateWindow ( 0.35, 0.0, .4, .5, ".", true )
 guiSetVisible(myWindow,false)
 
 
local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow )
local Teleports = guiCreateTab( "Işınlanma Paneli", tabPanel )
 
--GUI Buttons
LSAirport = guiCreateButton( 0.03, 0.01, 0.18, 0.12, "Doğma Bölgesi", true, Teleports )
guiSetFont ( LSAirport, "default-bold-small" )
 
LVAirport = guiCreateButton( 0.03, 0.13, 0.18, 0.12, "Hapsane/Jail", true, Teleports )
guiSetFont ( LVAirport, "default-bold-small" )
 
AbandedAirstrip = guiCreateButton( 0.03, 0.25, 0.18, 0.12, "Desert Airstrip", true, Teleports )
guiSetFont ( AbandedAirstrip, "default-bold-small" )
 
SFAirport = guiCreateButton( 0.03, 0.37, 0.18, 0.12, "SF  Airport", true, Teleports )
guiSetFont ( SFAirport, "default-bold-small" )
 
MountChiliad = guiCreateButton( 0.03, 0.49, 0.18, 0.12, "Mount Chiliad", true, Teleports )
guiSetFont ( MountChiliad, "default-bold-small" )
 
WangCars = guiCreateButton( 0.03, 0.61, 0.18, 0.12, "Wang Cars", true, Teleports )
guiSetFont ( WangCars, "default-bold-small" )
 
Ottos = guiCreateButton( 0.4, 0.01, 0.18, 0.12, "Otto's Cars", true, Teleports )
guiSetFont ( Ottos, "default-bold-small" )
 
Area51 = guiCreateButton( 0.4, 0.13, 0.18, 0.12, "Area 51", true, Teleports )
guiSetFont ( Area51, "default-bold-small" )
 
BigEar = guiCreateButton( 0.4, 0.25, 0.18, 0.12, "Big Ear", true, Teleports )
guiSetFont ( BigEar, "default-bold-small" )
 
BlueBerry = guiCreateButton( 0.4, 0.37, 0.18, 0.12, "BlueBerry Acres", true, Teleports )
guiSetFont ( BlueBerry, "default-bold-small" )
 
Heli = guiCreateButton( 0.4, 0.49, 0.18, 0.12, "Heli Pad", true, Teleports )
guiSetFont ( Heli, "default-bold-small" )
 
Grove = guiCreateButton( 0.4, 0.61, 0.18, 0.12, "Grove Street", true, Teleports )
guiSetFont ( Grove, "default-bold-small" )
 
Dam = guiCreateButton( 0.77, 0.01, 0.18, 0.12, "Sherman Dam", true, Teleports )
guiSetFont ( Dam, "default-bold-small" )
 
BackBeyond = guiCreateButton( 0.77, 0.13, 0.18, 0.12, "Back O Beyond", true, Teleports )
guiSetFont ( BackBeyond, "default-bold-small" )
 
Quarry = guiCreateButton( 0.77, 0.25, 0.18, 0.12, "Quarry", true, Teleports )
guiSetFont ( Quarry, "default-bold-small" )
 
Bayside = guiCreateButton( 0.77, 0.37, 0.18, 0.12, "Bayside", true, Teleports )
guiSetFont ( Bayside, "default-bold-small" )
 
Pecker = guiCreateButton( 0.77, 0.49, 0.18, 0.12, "Las Payasadas", true, Teleports )
guiSetFont ( Pecker, "default-bold-small" )
 
Bridge = guiCreateButton( 0.77, 0.61, 0.18, 0.12, "Bridge Facts", true, Teleports )
guiSetFont ( Bridge, "default-bold-small" )
 
Close = guiCreateButton( -0.03, 0.94, 1.1, 0.063, "Çıkış 'F6'", true, Teleports )
guiSetFont ( Close, "default-bold-small" )
 
guiSetAlpha ( myWindow, 1 )
guiWindowSetSizable ( myWindow, false )
 
 
--Create Labels
 
guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
 
guiSetFont ( One, "sa-header" )
 
--Label Color
function changeLabelColor ( )
 
        guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
end
 
setTimer ( changeLabelColor, 1000, 0 )
 
 
--Close
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
           if (source == Close) then
           guiSetVisible( myWindow, false )
           showCursor( false )
                end 
 
           end
)
 
 
--Teleports
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == MountChiliad) then
            local player = getLocalPlayer()
                    setElementPosition (player , 1544.1174316406, -1676.0473632813, 13.557782173157  )
            end
          end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LSAirport) then
            local player = getLocalPlayer()
                        setElementPosition (player , 1544.1174316406, -1676.0473632813, 13.557782173157  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LVAirport) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1544.1174316406, -1676.0473632813, 13.557782173157  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AbandedAirstrip) then
            local player = getLocalPlayer()
                  setElementPosition (player , 405.55480957031, 2537.8181152344, 15.9504671096  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == SFAirport) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1223.4442138672, 43.506820678711, 13.541401863098  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == WangCars) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1973.0573730469, 303.94955444336, 34.576179504395  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Ottos) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1643.1949462891, 1212.7462158203, 6.5843458175659  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Area51) then
            local player = getLocalPlayer()
                  setElementPosition (player , 215.36633300781, 1919.0992431641, 17.04539108276  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BigEar) then
            local player = getLocalPlayer()
                  setElementPosition (player , -294.39447021484, 1538.9415283203, 74.965629577637  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BlueBerry) then
            local player = getLocalPlayer()
                  setElementPosition (player , -3.3661103248596, 36.78341293335, 2.5212655067444  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Heli) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1535.7916259766, -1353.4775390625, 328.86157226563  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Grove) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2495.3193359375, -1690.1716308594, 14.765625 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Dam) then
            local player = getLocalPlayer()
                  setElementPosition (player , -887.02734375, 2000.9217529297, 60.654315948486 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BackBeyond) then
            local player = getLocalPlayer()
                  setElementPosition (player , -938.93298339844, -2346.8010253906, 59.003288269043 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Quarry) then
            local player = getLocalPlayer()
                  setElementPosition (player , 816.45257568359, 853.38360595703, 11.109794616699 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bayside) then
            local player = getLocalPlayer()
                  setElementPosition (player , -2244.837890625, 2307.1701660156, 4.9691247940063 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Pecker) then
            local player = getLocalPlayer()
                  setElementPosition (player , -418.42318725586, 2710.0107421875, 62.473159790039 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bridge) then
            local player = getLocalPlayer()
                  setElementPosition (player , -2555.5734863281, 1217.0106201172, 42.1484375 )
 
            end
         end
)

Buda teleport
 


Çevrimdışı Paradox

  • Kurucu
  • *
    • İleti: 741
  • SH Gaming
Yanıtla #3 : 05 Haziran 2017, 20:12:42
Teleport
Kod: lua
function Window ( )
        if ( guiGetVisible ( myWindow ) == true ) then   
       
                guiSetVisible ( myWindow, false )
 
                showCursor ( false )
        else     
    if getElementData(getLocalPlayer(),"Greenzone")== true then return end
                guiSetVisible ( myWindow, true )
 
                showCursor ( true )
        end
end
 bindKey ( "F6", "down", Window )
 
myWindow = guiCreateWindow ( 0.35, 0.0, .4, .5, ".", true )
 guiSetVisible(myWindow,false)
 
 
local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow )
local Teleports = guiCreateTab( "Işınlanma Paneli", tabPanel )
 
--GUI Buttons
LSAirport = guiCreateButton( 0.03, 0.01, 0.18, 0.12, "Doğma Bölgesi", true, Teleports )
guiSetFont ( LSAirport, "default-bold-small" )
 
LVAirport = guiCreateButton( 0.03, 0.13, 0.18, 0.12, "Hapsane/Jail", true, Teleports )
guiSetFont ( LVAirport, "default-bold-small" )
 
AbandedAirstrip = guiCreateButton( 0.03, 0.25, 0.18, 0.12, "Desert Airstrip", true, Teleports )
guiSetFont ( AbandedAirstrip, "default-bold-small" )
 
SFAirport = guiCreateButton( 0.03, 0.37, 0.18, 0.12, "SF  Airport", true, Teleports )
guiSetFont ( SFAirport, "default-bold-small" )
 
MountChiliad = guiCreateButton( 0.03, 0.49, 0.18, 0.12, "Mount Chiliad", true, Teleports )
guiSetFont ( MountChiliad, "default-bold-small" )
 
WangCars = guiCreateButton( 0.03, 0.61, 0.18, 0.12, "Wang Cars", true, Teleports )
guiSetFont ( WangCars, "default-bold-small" )
 
Ottos = guiCreateButton( 0.4, 0.01, 0.18, 0.12, "Otto's Cars", true, Teleports )
guiSetFont ( Ottos, "default-bold-small" )
 
Area51 = guiCreateButton( 0.4, 0.13, 0.18, 0.12, "Area 51", true, Teleports )
guiSetFont ( Area51, "default-bold-small" )
 
BigEar = guiCreateButton( 0.4, 0.25, 0.18, 0.12, "Big Ear", true, Teleports )
guiSetFont ( BigEar, "default-bold-small" )
 
BlueBerry = guiCreateButton( 0.4, 0.37, 0.18, 0.12, "BlueBerry Acres", true, Teleports )
guiSetFont ( BlueBerry, "default-bold-small" )
 
Heli = guiCreateButton( 0.4, 0.49, 0.18, 0.12, "Heli Pad", true, Teleports )
guiSetFont ( Heli, "default-bold-small" )
 
Grove = guiCreateButton( 0.4, 0.61, 0.18, 0.12, "Grove Street", true, Teleports )
guiSetFont ( Grove, "default-bold-small" )
 
Dam = guiCreateButton( 0.77, 0.01, 0.18, 0.12, "Sherman Dam", true, Teleports )
guiSetFont ( Dam, "default-bold-small" )
 
BackBeyond = guiCreateButton( 0.77, 0.13, 0.18, 0.12, "Back O Beyond", true, Teleports )
guiSetFont ( BackBeyond, "default-bold-small" )
 
Quarry = guiCreateButton( 0.77, 0.25, 0.18, 0.12, "Quarry", true, Teleports )
guiSetFont ( Quarry, "default-bold-small" )
 
Bayside = guiCreateButton( 0.77, 0.37, 0.18, 0.12, "Bayside", true, Teleports )
guiSetFont ( Bayside, "default-bold-small" )
 
Pecker = guiCreateButton( 0.77, 0.49, 0.18, 0.12, "Las Payasadas", true, Teleports )
guiSetFont ( Pecker, "default-bold-small" )
 
Bridge = guiCreateButton( 0.77, 0.61, 0.18, 0.12, "Bridge Facts", true, Teleports )
guiSetFont ( Bridge, "default-bold-small" )
 
Close = guiCreateButton( -0.03, 0.94, 1.1, 0.063, "Çıkış 'F6'", true, Teleports )
guiSetFont ( Close, "default-bold-small" )
 
guiSetAlpha ( myWindow, 1 )
guiWindowSetSizable ( myWindow, false )
 
 
--Create Labels
 
guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
 
guiSetFont ( One, "sa-header" )
 
--Label Color
function changeLabelColor ( )
 
        guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
end
 
setTimer ( changeLabelColor, 1000, 0 )
 
 
--Close
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
           if (source == Close) then
           guiSetVisible( myWindow, false )
           showCursor( false )
                end 
 
           end
)
 
 
--Teleports
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == MountChiliad) then
            local player = getLocalPlayer()
                    setElementPosition (player , 1544.1174316406, -1676.0473632813, 13.557782173157  )
            end
          end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LSAirport) then
            local player = getLocalPlayer()
                        setElementPosition (player , 1544.1174316406, -1676.0473632813, 13.557782173157  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LVAirport) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1544.1174316406, -1676.0473632813, 13.557782173157  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AbandedAirstrip) then
            local player = getLocalPlayer()
                  setElementPosition (player , 405.55480957031, 2537.8181152344, 15.9504671096  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == SFAirport) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1223.4442138672, 43.506820678711, 13.541401863098  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == WangCars) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1973.0573730469, 303.94955444336, 34.576179504395  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Ottos) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1643.1949462891, 1212.7462158203, 6.5843458175659  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Area51) then
            local player = getLocalPlayer()
                  setElementPosition (player , 215.36633300781, 1919.0992431641, 17.04539108276  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BigEar) then
            local player = getLocalPlayer()
                  setElementPosition (player , -294.39447021484, 1538.9415283203, 74.965629577637  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BlueBerry) then
            local player = getLocalPlayer()
                  setElementPosition (player , -3.3661103248596, 36.78341293335, 2.5212655067444  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Heli) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1535.7916259766, -1353.4775390625, 328.86157226563  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Grove) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2495.3193359375, -1690.1716308594, 14.765625 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Dam) then
            local player = getLocalPlayer()
                  setElementPosition (player , -887.02734375, 2000.9217529297, 60.654315948486 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BackBeyond) then
            local player = getLocalPlayer()
                  setElementPosition (player , -938.93298339844, -2346.8010253906, 59.003288269043 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Quarry) then
            local player = getLocalPlayer()
                  setElementPosition (player , 816.45257568359, 853.38360595703, 11.109794616699 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bayside) then
            local player = getLocalPlayer()
                  setElementPosition (player , -2244.837890625, 2307.1701660156, 4.9691247940063 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Pecker) then
            local player = getLocalPlayer()
                  setElementPosition (player , -418.42318725586, 2710.0107421875, 62.473159790039 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bridge) then
            local player = getLocalPlayer()
                  setElementPosition (player , -2555.5734863281, 1217.0106201172, 42.1484375 )
 
            end
         end
)
 


Çevrimdışı FreyZan

  • Yeni Üye
  • *
    • İleti: 4
Yanıtla #4 : 05 Haziran 2017, 20:38:29
Linki görebilmek için Kayıt olun yada Giriş yapın.
Teleport
Kod: lua
function Window ( )
        if ( guiGetVisible ( myWindow ) == true ) then   
       
                guiSetVisible ( myWindow, false )
 
                showCursor ( false )
        else     
    if getElementData(getLocalPlayer(),"Greenzone")== true then return end
                guiSetVisible ( myWindow, true )
 
                showCursor ( true )
        end
end
 bindKey ( "F6", "down", Window )
 
myWindow = guiCreateWindow ( 0.35, 0.0, .4, .5, ".", true )
 guiSetVisible(myWindow,false)
 
 
local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow )
local Teleports = guiCreateTab( "Işınlanma Paneli", tabPanel )
 
--GUI Buttons
LSAirport = guiCreateButton( 0.03, 0.01, 0.18, 0.12, "Doğma Bölgesi", true, Teleports )
guiSetFont ( LSAirport, "default-bold-small" )
 
LVAirport = guiCreateButton( 0.03, 0.13, 0.18, 0.12, "Hapsane/Jail", true, Teleports )
guiSetFont ( LVAirport, "default-bold-small" )
 
AbandedAirstrip = guiCreateButton( 0.03, 0.25, 0.18, 0.12, "Desert Airstrip", true, Teleports )
guiSetFont ( AbandedAirstrip, "default-bold-small" )
 
SFAirport = guiCreateButton( 0.03, 0.37, 0.18, 0.12, "SF  Airport", true, Teleports )
guiSetFont ( SFAirport, "default-bold-small" )
 
MountChiliad = guiCreateButton( 0.03, 0.49, 0.18, 0.12, "Mount Chiliad", true, Teleports )
guiSetFont ( MountChiliad, "default-bold-small" )
 
WangCars = guiCreateButton( 0.03, 0.61, 0.18, 0.12, "Wang Cars", true, Teleports )
guiSetFont ( WangCars, "default-bold-small" )
 
Ottos = guiCreateButton( 0.4, 0.01, 0.18, 0.12, "Otto's Cars", true, Teleports )
guiSetFont ( Ottos, "default-bold-small" )
 
Area51 = guiCreateButton( 0.4, 0.13, 0.18, 0.12, "Area 51", true, Teleports )
guiSetFont ( Area51, "default-bold-small" )
 
BigEar = guiCreateButton( 0.4, 0.25, 0.18, 0.12, "Big Ear", true, Teleports )
guiSetFont ( BigEar, "default-bold-small" )
 
BlueBerry = guiCreateButton( 0.4, 0.37, 0.18, 0.12, "BlueBerry Acres", true, Teleports )
guiSetFont ( BlueBerry, "default-bold-small" )
 
Heli = guiCreateButton( 0.4, 0.49, 0.18, 0.12, "Heli Pad", true, Teleports )
guiSetFont ( Heli, "default-bold-small" )
 
Grove = guiCreateButton( 0.4, 0.61, 0.18, 0.12, "Grove Street", true, Teleports )
guiSetFont ( Grove, "default-bold-small" )
 
Dam = guiCreateButton( 0.77, 0.01, 0.18, 0.12, "Sherman Dam", true, Teleports )
guiSetFont ( Dam, "default-bold-small" )
 
BackBeyond = guiCreateButton( 0.77, 0.13, 0.18, 0.12, "Back O Beyond", true, Teleports )
guiSetFont ( BackBeyond, "default-bold-small" )
 
Quarry = guiCreateButton( 0.77, 0.25, 0.18, 0.12, "Quarry", true, Teleports )
guiSetFont ( Quarry, "default-bold-small" )
 
Bayside = guiCreateButton( 0.77, 0.37, 0.18, 0.12, "Bayside", true, Teleports )
guiSetFont ( Bayside, "default-bold-small" )
 
Pecker = guiCreateButton( 0.77, 0.49, 0.18, 0.12, "Las Payasadas", true, Teleports )
guiSetFont ( Pecker, "default-bold-small" )
 
Bridge = guiCreateButton( 0.77, 0.61, 0.18, 0.12, "Bridge Facts", true, Teleports )
guiSetFont ( Bridge, "default-bold-small" )
 
Close = guiCreateButton( -0.03, 0.94, 1.1, 0.063, "Çıkış 'F6'", true, Teleports )
guiSetFont ( Close, "default-bold-small" )
 
guiSetAlpha ( myWindow, 1 )
guiWindowSetSizable ( myWindow, false )
 
 
--Create Labels
 
guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
 
guiSetFont ( One, "sa-header" )
 
--Label Color
function changeLabelColor ( )
 
        guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
end
 
setTimer ( changeLabelColor, 1000, 0 )
 
 
--Close
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
           if (source == Close) then
           guiSetVisible( myWindow, false )
           showCursor( false )
                end 
 
           end
)
 
 
--Teleports
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == MountChiliad) then
            local player = getLocalPlayer()
                    setElementPosition (player , 1544.1174316406, -1676.0473632813, 13.557782173157  )
            end
          end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LSAirport) then
            local player = getLocalPlayer()
                        setElementPosition (player , 1544.1174316406, -1676.0473632813, 13.557782173157  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LVAirport) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1544.1174316406, -1676.0473632813, 13.557782173157  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AbandedAirstrip) then
            local player = getLocalPlayer()
                  setElementPosition (player , 405.55480957031, 2537.8181152344, 15.9504671096  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == SFAirport) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1223.4442138672, 43.506820678711, 13.541401863098  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == WangCars) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1973.0573730469, 303.94955444336, 34.576179504395  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Ottos) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1643.1949462891, 1212.7462158203, 6.5843458175659  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Area51) then
            local player = getLocalPlayer()
                  setElementPosition (player , 215.36633300781, 1919.0992431641, 17.04539108276  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BigEar) then
            local player = getLocalPlayer()
                  setElementPosition (player , -294.39447021484, 1538.9415283203, 74.965629577637  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BlueBerry) then
            local player = getLocalPlayer()
                  setElementPosition (player , -3.3661103248596, 36.78341293335, 2.5212655067444  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Heli) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1535.7916259766, -1353.4775390625, 328.86157226563  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Grove) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2495.3193359375, -1690.1716308594, 14.765625 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Dam) then
            local player = getLocalPlayer()
                  setElementPosition (player , -887.02734375, 2000.9217529297, 60.654315948486 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BackBeyond) then
            local player = getLocalPlayer()
                  setElementPosition (player , -938.93298339844, -2346.8010253906, 59.003288269043 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Quarry) then
            local player = getLocalPlayer()
                  setElementPosition (player , 816.45257568359, 853.38360595703, 11.109794616699 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bayside) then
            local player = getLocalPlayer()
                  setElementPosition (player , -2244.837890625, 2307.1701660156, 4.9691247940063 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Pecker) then
            local player = getLocalPlayer()
                  setElementPosition (player , -418.42318725586, 2710.0107421875, 62.473159790039 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bridge) then
            local player = getLocalPlayer()
                  setElementPosition (player , -2555.5734863281, 1217.0106201172, 42.1484375 )
 
            end
         end
)
Teşekkür ederim başkan