[YARDIM] Vip BindKey

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı ardaabo

  • Acemi Üye
  • *
    • İleti: 145
: 30 Aralık 2018, 23:13:22
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, 08:01:49 Gönderen: Narkoz »
 


MTASATURK

[YARDIM] Vip BindKey
« : 30 Aralık 2018, 23:13:22 »

Çevrimdışı Mahlukat

  • Uzman Üye
  • *
    • İleti: 637
Yanıtla #1 : 02 Ocak 2019, 13:14:16
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)
Linki görebilmek için Kayıt olun yada Giriş yapın.
 


Çevrimdışı ardaabo

  • Acemi Üye
  • *
    • İleti: 145
Yanıtla #2 : 02 Ocak 2019, 13:42:30
Teşekkürler  ;D
Linki görebilmek için Kayıt olun yada Giriş yapın.

Konu kilit
 


Çevrimdışı Narkoz

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