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


[YARDIM] Vip BindKey

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı ardaabo

  • Yeni Üye
  • *
    • İleti: 49
: 31 Aralık 2018, 00:19:33
F6 ile panel açılıyor fakat birden fazla basınca panel coğalıyor, Close yaptığım zaman da panel ekran da kalıyor, nasıl cözebiliriz acaba

Spoiler for Hiden:
function vip()
    triggerServerEvent ( "ClientHaveLevel", getLocalPlayer() )
end

addCommandHandler ("vip", vip)
bindKey ( "F6", "down", vip )

function armavip ()
showCursor (true)
triggerServerEvent ( "onGreeting", getLocalPlayer() )

end

function equipvip ()
showCursor (true)
triggerServerEvent ( "onGreeting2", getLocalPlayer() )

end

function slotvip ()
showCursor (true)
triggerServerEvent ( "onGreeting3", getLocalPlayer() )

end

function vip2()
    painel = guiCreateWindow(400, 300, 488, 320, "V.I.P Panel", false)
    guiWindowSetSizable(painel, false)
    showCursor ( true )
    guiSetAlpha(painel, 1.00)
    guiSetProperty(painel, "CaptionColour", "FF6AE419")

    arma = guiCreateButton(48, 144, 341, 38, "Weapons", false, painel)
    equip = guiCreateButton(48, 193, 341, 38, "Equipments", false, painel)
    --slot = guiCreateButton(48, 245, 341, 38, "Blood", false, painel)
    equip = guiCreateButton(48, 193, 341, 38, "Equipments", false, painel)
    close = guiCreateButton(156, 287, 114, 37, "Close", false, painel)
    memo = guiCreateMemo(17, 30, 421, 104, "Thank you for purchasing VIP. Thus, you have contributed to the Server. We will make the server better quality", false, painel)
    guiMemoSetReadOnly(memo, true)

    addEvent( "showvip",true )
    addEventHandler ( "onClientGUIClick", arma, armavip, false )
    addEventHandler ( "onClientGUIClick", equip, equipvip, false )
    addEventHandler ( "onClientGUIClick", slot, slotvip, false )
    addEventHandler ( "onClientGUIClick", close,
    function()
        guiSetVisible(painel, false)
        showCursor(false)
    end, false )
end

addEvent( "ShowVipPanel", true )
addEventHandler( "ShowVipPanel", getRootElement(), vip2)
« Son Düzenleme: 08 Ocak 2019, 09:08:00 Gönderen: Narkoz »
 


MTASA TÜRK

[YARDIM] Vip BindKey
« : 31 Aralık 2018, 00:19:33 »

Çevrimdışı Mahlukat

  • Scripter
  • *
    • İleti: 530
Yanıtla #1 : 02 Ocak 2019, 14:20:27
Kod
function vip()
    triggerServerEvent ( "ClientHaveLevel", getLocalPlayer() )
end
addCommandHandler ("vip", vip)
bindKey ( "F6", "down", vip )

function armavip ()
showCursor (true)
triggerServerEvent ( "onGreeting", getLocalPlayer() )
end

function equipvip ()
showCursor (true)
triggerServerEvent ( "onGreeting2", getLocalPlayer() )
end

function slotvip ()
showCursor (true)
triggerServerEvent ( "onGreeting3", getLocalPlayer() )
end

painel = guiCreateWindow(400, 300, 488, 320, "V.I.P Panel", false)
guiSetVisible(painel, false)
guiWindowSetSizable(painel, false)
showCursor ( true )
guiSetAlpha(painel, 1.00)
guiSetProperty(painel, "CaptionColour", "FF6AE419")

arma = guiCreateButton(48, 144, 341, 38, "Weapons", false, painel)
equip = guiCreateButton(48, 193, 341, 38, "Equipments", false, painel)
--slot = guiCreateButton(48, 245, 341, 38, "Blood", false, painel)
equip = guiCreateButton(48, 193, 341, 38, "Equipments", false, painel)
close = guiCreateButton(156, 287, 114, 37, "Close", false, painel)
memo = guiCreateMemo(17, 30, 421, 104, "Thank you for purchasing VIP. Thus, you have contributed to the Server. We will make the server better quality", false, painel)
guiMemoSetReadOnly(memo, true)

addEvent( "showvip",true )
addEventHandler ( "onClientGUIClick", arma, armavip, false )
addEventHandler ( "onClientGUIClick", equip, equipvip, false )
addEventHandler ( "onClientGUIClick", slot, slotvip, false )
addEventHandler ( "onClientGUIClick", close,function()
guiSetVisible(painel, false)
showCursor(false)
end, false )


function vip2()
guiSetVisible(painel, not guiGetVisible(painel))
showCursor(guiGetVisible(painel))
end
addEvent( "ShowVipPanel", true )
addEventHandler( "ShowVipPanel", getRootElement(), vip2)
 
Mesajı Beğenenler: ardaabo


Çevrimdışı ardaabo

  • Yeni Üye
  • *
    • İleti: 49
Yanıtla #2 : 02 Ocak 2019, 14:48:41
Teşekkürler  ;D
Linki görebilmek için Kayıt olun yada Giriş yapın.

Konu kilit
 


Çevrimdışı Narkoz

  • Kurucu
  • *
    • İleti: 545
  • SH Gaming
Yanıtla #3 : 08 Ocak 2019, 09:25:09
Konu sahibi isteği üzerine konu kilitlenmiştir.