[YARDIM] Sürekli Panel Gelmesi

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı Speaw

  • Yeni Üye
  • *
    • İleti: 69
: 08 Temmuz 2017, 17:31:04
Kod: lua
--[[
/*--------------------------------------\
| |
|      dxteleport.Lua        |
|      |
|  -Creator:  St.Fighter |
|  -Credits to me and the creators of |
| encode, decode and hash |
|  -Version: 1.0 |
|  -Date: 19 January 2011 |
| @@Please Dont be Said To Yours! @@ |
| |
|          (C)  Copyright by St.Fighter |
|    (R)  All Right Reserved.     |
\--------------------------------------*/
]]--


function dxGuiTeleport ( )

        if ( addEventHandler("onClientRender",root,dxWindow) == true ) then   
       
                guiSetVisible ( Wang, true )
guiSetVisible ( Ottos, true )
guiSetVisible ( Area51, true )
guiSetVisible ( MountChiliad, true )
guiSetVisible ( HeliPad, true )
guiSetVisible ( Bayside, true )
guiSetVisible ( BridgeFacts, true )
guiSetVisible ( LasPayasadas, true )
guiSetVisible ( DesertAirstrip, true )
guiSetVisible ( AirstripSF, true )
guiSetVisible ( AirPortLV, true )
guiSetVisible ( AirPortLS, true )

                showCursor ( true )
        else   
removeEventHandler("onClientRender",root,dxWindow)
                guiSetVisible ( Wang, false )
guiSetVisible ( Ottos, false )
guiSetVisible ( Area51, false )
guiSetVisible ( MountChiliad, false )
guiSetVisible ( HeliPad, false )
guiSetVisible ( Bayside, false )
guiSetVisible ( BridgeFacts, false )
guiSetVisible ( LasPayasadas, false )
guiSetVisible ( DesertAirstrip, false )
guiSetVisible ( AirstripSF, false )
guiSetVisible ( AirPortLV, false )
guiSetVisible ( AirPortLS, false )

                showCursor ( false )
        end
end
bindKey ( "f6", "down", dxGuiTeleport )


--GuiButtons


Wang = guiCreateButton(453,335,150,35,"Dogma Alanı",false)
guiSetFont ( Wang, "default-bold-small" )

Ottos = guiCreateButton(634,389,150,35,"Görevler",false)
guiSetFont ( Ottos, "default-bold-small" )

Area51 = guiCreateButton(454,389,150,35,"Zombiler",false)
guiSetFont ( Area51, "default-bold-small" )

MountChiliad = guiCreateButton(825,334,150,35,"Banka",false)
guiSetFont ( MountChiliad, "default-bold-small" )

HeliPad = guiCreateButton(636,335,150,35,"Ev Mahallesi",false)
guiSetFont ( HeliPad, "default-bold-small" )

Bayside = guiCreateButton(827,389,150,35,"Vip-Ev",false)
guiSetFont ( Bayside, "default-bold-small" )

BridgeFacts = guiCreateButton(454,444,150,35,"Base-1",false)
guiSetFont ( BridgeFacts, "default-bold-small" )

LasPayasadas = guiCreateButton(635,444,150,35,"Base-2",false)
guiSetFont ( LasPayasadas, "default-bold-small" )

DesertAirstrip = guiCreateButton(829,447,150,35,"Base-3",false)
guiSetFont ( DesertAirstrip, "default-bold-small" )

AirstripSF = guiCreateButton(453,505,150,35,"Base-4",false)
guiSetFont ( AirstripSF, "default-bold-small" )

AirPortLV = guiCreateButton(636,507,150,35,"Base-5",false)
guiSetFont ( AirPortLV, "default-bold-small" )

AirPortLS = guiCreateButton(828,511,150,35,"Base-6",false)
guiSetFont ( AirPortLS, "default-bold-small" )


-- Direct X Drawing

    function dxWindow()
        dxDrawRectangle(406.0,277.0,603.0,316.0,tocolor(0,0,0,100),false)
        dxDrawText("",750.0,559.0,834.0,582.0,tocolor(0,255,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",800.0,559.0,890.0,580.0,tocolor(255,165,0,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",895.0,559.0,920.0,584.0,tocolor(255,255,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("İyisi",921.0,559.0,1007.0,586.0,tocolor(255,0,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawLine(447.0,318.0,958.0,318.0,tocolor(255,255,255,255),1.0,false)
        dxDrawText("",456.0,285.0,642.0,319.0,tocolor(0,0,0,255),1.0,"pricedown","left","top",false,false,false)
        dxDrawText("",451.0,289.0,637.0,323.0,tocolor(255,255,0,170),1.0,"pricedown","left","top",false,false,false)
    end

addEventHandler("onClientRender",root,dxWindow)
-- to hide the DX: removeEventHandler("onClientRender",root,dxWindow)


addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == MountChiliad) then
            local player = getLocalPlayer()
                    setElementPosition (player , -2262.3212890625,2286.5229492188,4.8202133178711 )
            end
          end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirPortLS) then
            local player = getLocalPlayer()
                        setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirPortLV) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == DesertAirstrip) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -300.86901855469,1486.6397705078,75.669631958008 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirstripSF) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Wang) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1967.9045410156,137.72703552246,27.6875  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Ottos) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1974.7971191406,91.34595489502,27.6875  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Area51) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  135.18838500977,1984.4515680859,19.5 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == HeliPad) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2903.552246,-746.826599,10.96605 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bayside) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2903.552246,-746.826599,10.9660 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BridgeFacts) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2829.346,2121.4233,10.8203 )

            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LasPayasadas) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1099.3504,2514.708,10.815 )
            end
         end
)

Sunucuya girer girmez karşıma geliyor nasıl düzeltirim
« Son Düzenleme: 08 Temmuz 2017, 20:47:16 Gönderen: Narkoz »
 


MTASATURK

[YARDIM] Sürekli Panel Gelmesi
« : 08 Temmuz 2017, 17:31:04 »

Çevrimdışı ertrldtcu

  • Uzman Üye
  • *
    • İleti: 589
Yanıtla #1 : 08 Temmuz 2017, 17:33:44
111. satırı silerek arkaplanı engelleyebilirsin.
Butonların görünmemesini sağlamak için 97. satıra şu kodları yapıştır:
Kod: lua
guiSetVisible ( Ottos, false )
guiSetVisible ( Area51, false )
guiSetVisible ( MountChiliad, false )
guiSetVisible ( HeliPad, false )
guiSetVisible ( Bayside, false )
guiSetVisible ( BridgeFacts, false )
guiSetVisible ( LasPayasadas, false )
guiSetVisible ( DesertAirstrip, false )
guiSetVisible ( AirstripSF, false )
guiSetVisible ( AirPortLV, false )
guiSetVisible ( AirPortLS, false )
system
 


Çevrimdışı Speaw

  • Yeni Üye
  • *
    • İleti: 69
Yanıtla #2 : 08 Temmuz 2017, 17:46:21
Linki görebilmek için Kayıt olun yada Giriş yapın.
111. satırı silerek arkaplanı engelleyebilirsin.
Butonların görünmemesini sağlamak için 97. satıra şu kodları yapıştır:
Kod: lua
guiSetVisible ( Ottos, false )
guiSetVisible ( Area51, false )
guiSetVisible ( MountChiliad, false )
guiSetVisible ( HeliPad, false )
guiSetVisible ( Bayside, false )
guiSetVisible ( BridgeFacts, false )
guiSetVisible ( LasPayasadas, false )
guiSetVisible ( DesertAirstrip, false )
guiSetVisible ( AirstripSF, false )
guiSetVisible ( AirPortLV, false )
guiSetVisible ( AirPortLS, false )
olmadı
 


Çevrimdışı ertrldtcu

  • Uzman Üye
  • *
    • İleti: 589
Yanıtla #3 : 08 Temmuz 2017, 17:50:04
Linki görebilmek için Kayıt olun yada Giriş yapın.
olmadı
ilginç  ;D
system
 


Çevrimdışı Speaw

  • Yeni Üye
  • *
    • İleti: 69
Yanıtla #4 : 08 Temmuz 2017, 18:02:01
Linki görebilmek için Kayıt olun yada Giriş yapın. Böyle oluyor onları kapatınca
 


Çevrimdışı ertrldtcu

  • Uzman Üye
  • *
    • İleti: 589
Yanıtla #5 : 08 Temmuz 2017, 18:20:01
Linki görebilmek için Kayıt olun yada Giriş yapın.
Linki görebilmek için Kayıt olun yada Giriş yapın. Böyle oluyor onları kapatınca
Verdiğim kodları dediğim yere yapıştırdın mı?
system
 


MTASATURK

Ynt: [Yardım] SÜrekli panel gelmesi
« Yanıtla #5 : 08 Temmuz 2017, 18:20:01 »

Çevrimdışı Speaw

  • Yeni Üye
  • *
    • İleti: 69
Yanıtla #6 : 08 Temmuz 2017, 18:20:51
Linki görebilmek için Kayıt olun yada Giriş yapın.
Verdiğim kodları dediğim yere yapıştırdın mı?
Evet Bu sefer o yazılar gitti boş panel kaldı
 


Çevrimdışı ertrldtcu

  • Uzman Üye
  • *
    • İleti: 589
Yanıtla #7 : 08 Temmuz 2017, 18:22:47
Linki görebilmek için Kayıt olun yada Giriş yapın.
Evet Bu sefer o yazılar gitti boş panel kaldı
event eklenilen satırı sildin mi?
111. satır
system
 


Çevrimdışı Speaw

  • Yeni Üye
  • *
    • İleti: 69
Yanıtla #8 : 08 Temmuz 2017, 18:24:10
Linki görebilmek için Kayıt olun yada Giriş yapın.
event eklenilen satırı sildin mi?
111. satır
Kod: lua
--[[
/*--------------------------------------\
| |
|      dxteleport.Lua        |
|      |
|  -Creator:  St.Fighter |
|  -Credits to me and the creators of |
| encode, decode and hash |
|  -Version: 1.0 |
|  -Date: 19 January 2011 |
| @@Please Dont be Said To Yours! @@ |
| |
|          (C)  Copyright by St.Fighter |
|    (R)  All Right Reserved.     |
\--------------------------------------*/
]]--


function dxGuiTeleport ( )

        if ( addEventHandler("onClientRender",root,dxWindow) == true ) then   
       
                guiSetVisible ( Wang, false )
guiSetVisible ( Ottos, false )
guiSetVisible ( Area51, false )
guiSetVisible ( MountChiliad, false )
guiSetVisible ( HeliPad, false )
guiSetVisible ( Bayside, false )
guiSetVisible ( BridgeFacts, false )
guiSetVisible ( LasPayasadas, false )
guiSetVisible ( DesertAirstrip, false )
guiSetVisible ( AirstripSF, false )
guiSetVisible ( AirPortLV, false )
guiSetVisible ( AirPortLS, false )

                showCursor ( true )
        else   
removeEventHandler("onClientRender",root,dxWindow)
                guiSetVisible ( Wang, false )
guiSetVisible ( Ottos, false )
guiSetVisible ( Area51, false )
guiSetVisible ( MountChiliad, false )
guiSetVisible ( HeliPad, false )
guiSetVisible ( Bayside, false )
guiSetVisible ( BridgeFacts, false )
guiSetVisible ( LasPayasadas, false )
guiSetVisible ( DesertAirstrip, false )
guiSetVisible ( AirstripSF, false )
guiSetVisible ( AirPortLV, false )
guiSetVisible ( AirPortLS, false )

                showCursor ( false )
        end
end
bindKey ( "f6", "down", dxGuiTeleport )


--GuiButtons


Wang = guiCreateButton(453,335,150,35,"Dogma Alanı",false)
guiSetFont ( Wang, "default-bold-small" )

Ottos = guiCreateButton(634,389,150,35,"Görevler",false)
guiSetFont ( Ottos, "default-bold-small" )

Area51 = guiCreateButton(454,389,150,35,"Zombiler",false)
guiSetFont ( Area51, "default-bold-small" )

MountChiliad = guiCreateButton(825,334,150,35,"Banka",false)
guiSetFont ( MountChiliad, "default-bold-small" )

HeliPad = guiCreateButton(636,335,150,35,"Ev Mahallesi",false)
guiSetFont ( HeliPad, "default-bold-small" )

Bayside = guiCreateButton(827,389,150,35,"Vip-Ev",false)
guiSetFont ( Bayside, "default-bold-small" )

BridgeFacts = guiCreateButton(454,444,150,35,"Base-1",false)
guiSetFont ( BridgeFacts, "default-bold-small" )

LasPayasadas = guiCreateButton(635,444,150,35,"Base-2",false)
guiSetFont ( LasPayasadas, "default-bold-small" )

DesertAirstrip = guiCreateButton(829,447,150,35,"Base-3",false)
guiSetFont ( DesertAirstrip, "default-bold-small" )

AirstripSF = guiCreateButton(453,505,150,35,"Base-4",false)
guiSetFont ( AirstripSF, "default-bold-small" )

AirPortLV = guiCreateButton(636,507,150,35,"Base-5",false)
guiSetFont ( AirPortLV, "default-bold-small" )

AirPortLS = guiCreateButton(828,511,150,35,"Base-6",false)
guiSetFont ( AirPortLS, "default-bold-small" )


-- Direct X Drawing

    function dxWindow()
        dxDrawRectangle(406.0,277.0,603.0,316.0,tocolor(0,0,0,100),false)
        dxDrawText("",750.0,559.0,834.0,582.0,tocolor(0,255,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",800.0,559.0,890.0,580.0,tocolor(255,165,0,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",895.0,559.0,920.0,584.0,tocolor(255,255,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",921.0,559.0,1007.0,586.0,tocolor(255,0,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawLine(447.0,318.0,958.0,318.0,tocolor(255,255,255,255),1.0,false)
        dxDrawText("",456.0,285.0,642.0,319.0,tocolor(0,0,0,255),1.0,"pricedown","left","top",false,false,false)
        dxDrawText("",451.0,289.0,637.0,323.0,tocolor(255,255,0,170),1.0,"pricedown","left","top",false,false,false)
    end
-- to hide the DX: removeEventHandler("onClientRender",root,dxWindow)


addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == MountChiliad) then
            local player = getLocalPlayer()
                    setElementPosition (player , -2262.3212890625,2286.5229492188,4.8202133178711 )
            end
          end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirPortLS) then
            local player = getLocalPlayer()
                        setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirPortLV) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == DesertAirstrip) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -300.86901855469,1486.6397705078,75.669631958008 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirstripSF) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Wang) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1967.9045410156,137.72703552246,27.6875  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Ottos) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1974.7971191406,91.34595489502,27.6875  )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Area51) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  135.18838500977,1984.4515680859,19.5 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == HeliPad) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2903.552246,-746.826599,10.96605 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bayside) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2903.552246,-746.826599,10.9660 )
            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BridgeFacts) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2829.346,2121.4233,10.8203 )

            end
         end
)

addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LasPayasadas) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1099.3504,2514.708,10.815 )
            end
         end
)
Son şekil bu içi boş panel açılıyor bu sefer f6 ya basında normal yazılarda kayboluyor
 


Çevrimdışı ertrldtcu

  • Uzman Üye
  • *
    • İleti: 589
Yanıtla #9 : 08 Temmuz 2017, 18:38:57
Kod: lua
function dxGuiTeleport ( )
 
        if ( addEventHandler("onClientRender",root,dxWindow) == true ) then   
       
                guiSetVisible ( Wang, true )
                                guiSetVisible ( Ottos, true )
                                guiSetVisible ( Area51, true )
                                guiSetVisible ( MountChiliad, true )
                                guiSetVisible ( HeliPad, true )
                                guiSetVisible ( Bayside, true )
                                guiSetVisible ( BridgeFacts, true )
                                guiSetVisible ( LasPayasadas, true )
                                guiSetVisible ( DesertAirstrip, true )
                                guiSetVisible ( AirstripSF, true )
                                guiSetVisible ( AirPortLV, true )
                                guiSetVisible ( AirPortLS, true )
 
                showCursor ( true )
        else   
                        removeEventHandler("onClientRender",root,dxWindow)
                guiSetVisible ( Wang, false )
                                guiSetVisible ( Ottos, false )
                                guiSetVisible ( Area51, false )
                                guiSetVisible ( MountChiliad, false )
                                guiSetVisible ( HeliPad, false )
                                guiSetVisible ( Bayside, false )
                                guiSetVisible ( BridgeFacts, false )
                                guiSetVisible ( LasPayasadas, false )
                                guiSetVisible ( DesertAirstrip, false )
                                guiSetVisible ( AirstripSF, false )
                                guiSetVisible ( AirPortLV, false )
                                guiSetVisible ( AirPortLS, false )
 
                showCursor ( false )
        end
end
bindKey ( "f6", "down", dxGuiTeleport )
 
 
--GuiButtons
 
 
Wang = guiCreateButton(453,335,150,35,"Dogma Alanı",false)
guiSetFont ( Wang, "default-bold-small" )
 
Ottos = guiCreateButton(634,389,150,35,"Görevler",false)
guiSetFont ( Ottos, "default-bold-small" )
 
Area51 = guiCreateButton(454,389,150,35,"Zombiler",false)
guiSetFont ( Area51, "default-bold-small" )
 
MountChiliad = guiCreateButton(825,334,150,35,"Banka",false)
guiSetFont ( MountChiliad, "default-bold-small" )
 
HeliPad = guiCreateButton(636,335,150,35,"Ev Mahallesi",false)
guiSetFont ( HeliPad, "default-bold-small" )
 
Bayside = guiCreateButton(827,389,150,35,"Vip-Ev",false)
guiSetFont ( Bayside, "default-bold-small" )
 
BridgeFacts = guiCreateButton(454,444,150,35,"Base-1",false)
guiSetFont ( BridgeFacts, "default-bold-small" )
 
LasPayasadas = guiCreateButton(635,444,150,35,"Base-2",false)
guiSetFont ( LasPayasadas, "default-bold-small" )
 
DesertAirstrip = guiCreateButton(829,447,150,35,"Base-3",false)
guiSetFont ( DesertAirstrip, "default-bold-small" )
 
AirstripSF = guiCreateButton(453,505,150,35,"Base-4",false)
guiSetFont ( AirstripSF, "default-bold-small" )
 
AirPortLV = guiCreateButton(636,507,150,35,"Base-5",false)
guiSetFont ( AirPortLV, "default-bold-small" )
 
AirPortLS = guiCreateButton(828,511,150,35,"Base-6",false)
guiSetFont ( AirPortLS, "default-bold-small" )
 
 
-- Direct X Drawing
 
    function dxWindow()
        dxDrawRectangle(406.0,277.0,603.0,316.0,tocolor(0,0,0,100),false)
        dxDrawText("",750.0,559.0,834.0,582.0,tocolor(0,255,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",800.0,559.0,890.0,580.0,tocolor(255,165,0,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",895.0,559.0,920.0,584.0,tocolor(255,255,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",921.0,559.0,1007.0,586.0,tocolor(255,0,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawLine(447.0,318.0,958.0,318.0,tocolor(255,255,255,255),1.0,false)
        dxDrawText("",456.0,285.0,642.0,319.0,tocolor(0,0,0,255),1.0,"pricedown","left","top",false,false,false)
        dxDrawText("",451.0,289.0,637.0,323.0,tocolor(255,255,0,170),1.0,"pricedown","left","top",false,false,false)
    end
-- to hide the DX: removeEventHandler("onClientRender",root,dxWindow)
 
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == MountChiliad) then
            local player = getLocalPlayer()
                    setElementPosition (player , -2262.3212890625,2286.5229492188,4.8202133178711 )
            end
          end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirPortLS) then
            local player = getLocalPlayer()
                        setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirPortLV) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == DesertAirstrip) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -300.86901855469,1486.6397705078,75.669631958008 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirstripSF) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Wang) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1967.9045410156,137.72703552246,27.6875  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Ottos) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1974.7971191406,91.34595489502,27.6875  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Area51) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  135.18838500977,1984.4515680859,19.5 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == HeliPad) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2903.552246,-746.826599,10.96605 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bayside) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2903.552246,-746.826599,10.9660 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BridgeFacts) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2829.346,2121.4233,10.8203 )
 
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LasPayasadas) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1099.3504,2514.708,10.815 )
            end
         end
)
system
 


Çevrimdışı Speaw

  • Yeni Üye
  • *
    • İleti: 69
Yanıtla #10 : 08 Temmuz 2017, 19:08:30
Linki görebilmek için Kayıt olun yada Giriş yapın.
Kod: lua
function dxGuiTeleport ( )
 
        if ( addEventHandler("onClientRender",root,dxWindow) == true ) then   
       
                guiSetVisible ( Wang, true )
                                guiSetVisible ( Ottos, true )
                                guiSetVisible ( Area51, true )
                                guiSetVisible ( MountChiliad, true )
                                guiSetVisible ( HeliPad, true )
                                guiSetVisible ( Bayside, true )
                                guiSetVisible ( BridgeFacts, true )
                                guiSetVisible ( LasPayasadas, true )
                                guiSetVisible ( DesertAirstrip, true )
                                guiSetVisible ( AirstripSF, true )
                                guiSetVisible ( AirPortLV, true )
                                guiSetVisible ( AirPortLS, true )
 
                showCursor ( true )
        else   
                        removeEventHandler("onClientRender",root,dxWindow)
                guiSetVisible ( Wang, false )
                                guiSetVisible ( Ottos, false )
                                guiSetVisible ( Area51, false )
                                guiSetVisible ( MountChiliad, false )
                                guiSetVisible ( HeliPad, false )
                                guiSetVisible ( Bayside, false )
                                guiSetVisible ( BridgeFacts, false )
                                guiSetVisible ( LasPayasadas, false )
                                guiSetVisible ( DesertAirstrip, false )
                                guiSetVisible ( AirstripSF, false )
                                guiSetVisible ( AirPortLV, false )
                                guiSetVisible ( AirPortLS, false )
 
                showCursor ( false )
        end
end
bindKey ( "f6", "down", dxGuiTeleport )
 
 
--GuiButtons
 
 
Wang = guiCreateButton(453,335,150,35,"Dogma Alanı",false)
guiSetFont ( Wang, "default-bold-small" )
 
Ottos = guiCreateButton(634,389,150,35,"Görevler",false)
guiSetFont ( Ottos, "default-bold-small" )
 
Area51 = guiCreateButton(454,389,150,35,"Zombiler",false)
guiSetFont ( Area51, "default-bold-small" )
 
MountChiliad = guiCreateButton(825,334,150,35,"Banka",false)
guiSetFont ( MountChiliad, "default-bold-small" )
 
HeliPad = guiCreateButton(636,335,150,35,"Ev Mahallesi",false)
guiSetFont ( HeliPad, "default-bold-small" )
 
Bayside = guiCreateButton(827,389,150,35,"Vip-Ev",false)
guiSetFont ( Bayside, "default-bold-small" )
 
BridgeFacts = guiCreateButton(454,444,150,35,"Base-1",false)
guiSetFont ( BridgeFacts, "default-bold-small" )
 
LasPayasadas = guiCreateButton(635,444,150,35,"Base-2",false)
guiSetFont ( LasPayasadas, "default-bold-small" )
 
DesertAirstrip = guiCreateButton(829,447,150,35,"Base-3",false)
guiSetFont ( DesertAirstrip, "default-bold-small" )
 
AirstripSF = guiCreateButton(453,505,150,35,"Base-4",false)
guiSetFont ( AirstripSF, "default-bold-small" )
 
AirPortLV = guiCreateButton(636,507,150,35,"Base-5",false)
guiSetFont ( AirPortLV, "default-bold-small" )
 
AirPortLS = guiCreateButton(828,511,150,35,"Base-6",false)
guiSetFont ( AirPortLS, "default-bold-small" )
 
 
-- Direct X Drawing
 
    function dxWindow()
        dxDrawRectangle(406.0,277.0,603.0,316.0,tocolor(0,0,0,100),false)
        dxDrawText("",750.0,559.0,834.0,582.0,tocolor(0,255,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",800.0,559.0,890.0,580.0,tocolor(255,165,0,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",895.0,559.0,920.0,584.0,tocolor(255,255,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",921.0,559.0,1007.0,586.0,tocolor(255,0,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawLine(447.0,318.0,958.0,318.0,tocolor(255,255,255,255),1.0,false)
        dxDrawText("",456.0,285.0,642.0,319.0,tocolor(0,0,0,255),1.0,"pricedown","left","top",false,false,false)
        dxDrawText("",451.0,289.0,637.0,323.0,tocolor(255,255,0,170),1.0,"pricedown","left","top",false,false,false)
    end
-- to hide the DX: removeEventHandler("onClientRender",root,dxWindow)
 
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == MountChiliad) then
            local player = getLocalPlayer()
                    setElementPosition (player , -2262.3212890625,2286.5229492188,4.8202133178711 )
            end
          end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirPortLS) then
            local player = getLocalPlayer()
                        setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirPortLV) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == DesertAirstrip) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -300.86901855469,1486.6397705078,75.669631958008 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirstripSF) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Wang) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1967.9045410156,137.72703552246,27.6875  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Ottos) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1974.7971191406,91.34595489502,27.6875  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Area51) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  135.18838500977,1984.4515680859,19.5 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == HeliPad) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2903.552246,-746.826599,10.96605 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bayside) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2903.552246,-746.826599,10.9660 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BridgeFacts) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2829.346,2121.4233,10.8203 )
 
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LasPayasadas) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1099.3504,2514.708,10.815 )
            end
         end
)

Linki görebilmek için Kayıt olun yada Giriş yapın. Böyle gözüküyor oyuna girince
 


Çevrimdışı ertrldtcu

  • Uzman Üye
  • *
    • İleti: 589
Yanıtla #11 : 08 Temmuz 2017, 19:31:22
Kod: lua
function dxGuiTeleport ( )
 
        if ( addEventHandler("onClientRender",root,dxWindow) == true ) then   
       
                guiSetVisible ( Wang, true )
                                guiSetVisible ( Ottos, true )
                                guiSetVisible ( Area51, true )
                                guiSetVisible ( MountChiliad, true )
                                guiSetVisible ( HeliPad, true )
                                guiSetVisible ( Bayside, true )
                                guiSetVisible ( BridgeFacts, true )
                                guiSetVisible ( LasPayasadas, true )
                                guiSetVisible ( DesertAirstrip, true )
                                guiSetVisible ( AirstripSF, true )
                                guiSetVisible ( AirPortLV, true )
                                guiSetVisible ( AirPortLS, true )
 
                showCursor ( true )
        else   
                        removeEventHandler("onClientRender",root,dxWindow)
                guiSetVisible ( Wang, false )
                                guiSetVisible ( Ottos, false )
                                guiSetVisible ( Area51, false )
                                guiSetVisible ( MountChiliad, false )
                                guiSetVisible ( HeliPad, false )
                                guiSetVisible ( Bayside, false )
                                guiSetVisible ( BridgeFacts, false )
                                guiSetVisible ( LasPayasadas, false )
                                guiSetVisible ( DesertAirstrip, false )
                                guiSetVisible ( AirstripSF, false )
                                guiSetVisible ( AirPortLV, false )
                                guiSetVisible ( AirPortLS, false )
 
                showCursor ( false )
        end
end
bindKey ( "f6", "down", dxGuiTeleport )
 
 
--GuiButtons
 
 
Wang = guiCreateButton(453,335,150,35,"Dogma Alanı",false)
guiSetFont ( Wang, "default-bold-small" )
 
Ottos = guiCreateButton(634,389,150,35,"Görevler",false)
guiSetFont ( Ottos, "default-bold-small" )
 
Area51 = guiCreateButton(454,389,150,35,"Zombiler",false)
guiSetFont ( Area51, "default-bold-small" )
 
MountChiliad = guiCreateButton(825,334,150,35,"Banka",false)
guiSetFont ( MountChiliad, "default-bold-small" )
 
HeliPad = guiCreateButton(636,335,150,35,"Ev Mahallesi",false)
guiSetFont ( HeliPad, "default-bold-small" )
 
Bayside = guiCreateButton(827,389,150,35,"Vip-Ev",false)
guiSetFont ( Bayside, "default-bold-small" )
 
BridgeFacts = guiCreateButton(454,444,150,35,"Base-1",false)
guiSetFont ( BridgeFacts, "default-bold-small" )
 
LasPayasadas = guiCreateButton(635,444,150,35,"Base-2",false)
guiSetFont ( LasPayasadas, "default-bold-small" )
 
DesertAirstrip = guiCreateButton(829,447,150,35,"Base-3",false)
guiSetFont ( DesertAirstrip, "default-bold-small" )
 
AirstripSF = guiCreateButton(453,505,150,35,"Base-4",false)
guiSetFont ( AirstripSF, "default-bold-small" )
 
AirPortLV = guiCreateButton(636,507,150,35,"Base-5",false)
guiSetFont ( AirPortLV, "default-bold-small" )
 
AirPortLS = guiCreateButton(828,511,150,35,"Base-6",false)
guiSetFont ( AirPortLS, "default-bold-small" )
 
                 guiSetVisible ( Wang, false )
                                guiSetVisible ( Ottos, false )
                                guiSetVisible ( Area51, false )
                                guiSetVisible ( MountChiliad, false )
                                guiSetVisible ( HeliPad, false )
                                guiSetVisible ( Bayside, false )
                                guiSetVisible ( BridgeFacts, false )
                                guiSetVisible ( LasPayasadas, false )
                                guiSetVisible ( DesertAirstrip, false )
                                guiSetVisible ( AirstripSF, false )
                                guiSetVisible ( AirPortLV, false )
                                guiSetVisible ( AirPortLS, false )
 
                showCursor ( false )

-- Direct X Drawing
 
    function dxWindow()
        dxDrawRectangle(406.0,277.0,603.0,316.0,tocolor(0,0,0,100),false)
        dxDrawText("",750.0,559.0,834.0,582.0,tocolor(0,255,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",800.0,559.0,890.0,580.0,tocolor(255,165,0,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",895.0,559.0,920.0,584.0,tocolor(255,255,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawText("",921.0,559.0,1007.0,586.0,tocolor(255,0,255,175),0.7,"pricedown","left","top",false,false,false)
        dxDrawLine(447.0,318.0,958.0,318.0,tocolor(255,255,255,255),1.0,false)
        dxDrawText("",456.0,285.0,642.0,319.0,tocolor(0,0,0,255),1.0,"pricedown","left","top",false,false,false)
        dxDrawText("",451.0,289.0,637.0,323.0,tocolor(255,255,0,170),1.0,"pricedown","left","top",false,false,false)
    end
-- to hide the DX: removeEventHandler("onClientRender",root,dxWindow)
 
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == MountChiliad) then
            local player = getLocalPlayer()
                    setElementPosition (player , -2262.3212890625,2286.5229492188,4.8202133178711 )
            end
          end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirPortLS) then
            local player = getLocalPlayer()
                        setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirPortLV) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == DesertAirstrip) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -300.86901855469,1486.6397705078,75.669631958008 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == AirstripSF) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1967.9045410156,137.72703552246,27.6875 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Wang) then
            local player = getLocalPlayer()
                  setElementPosition (player , -1967.9045410156,137.72703552246,27.6875  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Ottos) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  -1974.7971191406,91.34595489502,27.6875  )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Area51) then
            local player = getLocalPlayer()
                  setElementPosition (player ,  135.18838500977,1984.4515680859,19.5 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == HeliPad) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2903.552246,-746.826599,10.96605 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == Bayside) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2903.552246,-746.826599,10.9660 )
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == BridgeFacts) then
            local player = getLocalPlayer()
                  setElementPosition (player , 2829.346,2121.4233,10.8203 )
 
            end
         end
)
 
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
        function ( )
            if (source == LasPayasadas) then
            local player = getLocalPlayer()
                  setElementPosition (player , 1099.3504,2514.708,10.815 )
            end
         end
)
system