Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sx,sy = guiGetScreenSize()
- px,py = 1600,900
- x,y = (sx/px), (sy/py)
- function draw()
- if getPlayerName(localPlayer) == "Banex" then
- window = dxCreateWindow(x*320,y*240,x*436,y*480,"",false)
- background = dxCreateStaticImage (1,1,217,54,"logo.png",false, window)
- button4 = dxCreateButton(2, 65, 214, 36, "Assaut Rifles", false, window)
- button5 = dxCreateButton(2, 101, 214, 36, "Handguns", false, window)
- button6 = dxCreateButton(2, 137, 214, 36, "Melee", false, window)
- button7 = dxCreateButton(2, 173, 214, 36, "Shotguns", false, window)
- button9 = dxCreateButton(2, 209, 214, 36, "Sub-Machine Guns", false, window)
- button2 = dxCreateButton(2,245,214,36,"Equipamentos",false, window)
- fechar = dxCreateButton(2,281,214,36,"Fechar",false, window)
- voltar = dxCreateButton(2,281,214,36,"Voltar",false, window)
- button10 = dxCreateButton(2, 65, 214, 36, "Colete", false, window)
- button11 = dxCreateButton(2, 101, 214, 36, "Paraquedas", false, window)
- button12 = dxCreateButton(2,65,214,36,"AK-47",false, window)
- button13 = dxCreateButton(2,101,214,36,"M4",false, window)
- button14 = dxCreateButton(2,65,214,36,"Colt 45",false, window)
- button15 = dxCreateButton(2,101,214,36,"Silenced",false, window)
- button16 = dxCreateButton(2,137,214,36,"Deagle",false, window)
- button17 = dxCreateButton(2, 65, 214, 36, "Brass Knuclkes", false, window)
- button18 = dxCreateButton(2, 101, 214, 36, "Golf Club", false, window)
- button19 = dxCreateButton(2, 137, 214, 36, "Baseball Bat", false, window)
- button20 = dxCreateButton(2, 173, 214, 36, "Shovel", false, window)
- button21 = dxCreateButton(2, 209, 214, 36, "Pool Cue", false, window)
- button22 = dxCreateButton(2, 245, 214, 36, "Katana", false, window)
- button24 = dxCreateButton(2, 100, 214, 36, "Shotgun", false, window)
- button25 = dxCreateButton(2, 140, 214, 36, "Sawed-off", false, window)
- button26 = dxCreateButton(2, 180, 214, 36, "Combat Shotgun", false, window)
- button27 = dxCreateButton(2, 100, 214, 36, "TEC-9", false, window)
- button28 = dxCreateButton(2, 140, 214, 36, "UZI", false, window)
- button29 = dxCreateButton(2, 180, 214, 36, "MP5", false, window)
- setMenuVisible("all", false)
- setMenuVisible("Principal", true)
- showCursor(true)
- end
- end
- addEventHandler("onClientResourceStart", getRootElement(getThisResource()), draw)
- addEventHandler("onClientDXClick",getRootElement(),
- function()
- if ( source == button2 ) then
- setMenuVisible("Principal", false)
- setMenuVisible(dxGetText(button2), true)
- elseif ( source == button3 ) then
- setMenuVisible("Principal", false)
- setMenuVisible(dxGetText(button3), true)
- elseif (source == button4) then
- setMenuVisible("Principal", false)
- setMenuVisible(dxGetText(button4), true)
- elseif (source == button5) then
- setMenuVisible("Principal", false)
- setMenuVisible(dxGetText(button5), true)
- elseif (source == button6) then
- setMenuVisible("Principal", false)
- setMenuVisible(dxGetText(button6), true)
- elseif (source == button7) then
- setMenuVisible("Principal", false)
- setMenuVisible(dxGetText(button7), true)
- elseif (source == button9) then
- setMenuVisible("Principal", false)
- setMenuVisible(dxGetText(button9), true)
- elseif (source == fechar) then
- setMenuVisible("all", false)
- dxSetVisible(window, false)
- dxSetVisible(background, false)
- elseif (source == voltar) then
- setMenuVisible("all", false)
- setMenuVisible("Principal", true)
- elseif (source == button10) then
- outputChatBox("TEST")
- end
- end)
- function setMenuVisible(menu,bool)
- if menu == "all" then
- dxSetVisible(button2, bool)
- dxSetVisible(button4, bool)
- dxSetVisible(button5, bool)
- dxSetVisible(button6, bool)
- dxSetVisible(button7, bool)
- dxSetVisible(button9, bool)
- dxSetVisible(button10, bool)
- dxSetVisible(button11, bool)
- dxSetVisible(button12, bool)
- dxSetVisible(button13, bool)
- dxSetVisible(button14, bool)
- dxSetVisible(button15, bool)
- dxSetVisible(button16, bool)
- dxSetVisible(button17, bool)
- dxSetVisible(button18, bool)
- dxSetVisible(button19, bool)
- dxSetVisible(button20, bool)
- dxSetVisible(button21, bool)
- dxSetVisible(button22, bool)
- dxSetVisible(button23, bool)
- dxSetVisible(button24, bool)
- dxSetVisible(button25, bool)
- dxSetVisible(button26, bool)
- dxSetVisible(button27, bool)
- dxSetVisible(button28, bool)
- dxSetVisible(button29, bool)
- dxSetVisible(fechar, bool)
- dxSetVisible(voltar, bool)
- elseif menu == "Equipamentos" then
- dxSetVisible(button10, bool)
- dxSetVisible(button11, bool)
- dxSetVisible(voltar, bool)
- elseif menu == "Assaut Rifles" then
- dxSetVisible(button12, bool)
- dxSetVisible(button13, bool)
- dxSetVisible(voltar, bool)
- elseif menu == "Handguns" then
- dxSetVisible(button14, bool)
- dxSetVisible(button15, bool)
- dxSetVisible(button16, bool)
- dxSetVisible(voltar, bool)
- elseif menu == "Melee" then
- dxSetVisible(button17, bool)
- dxSetVisible(button18, bool)
- dxSetVisible(button19, bool)
- dxSetVisible(button20, bool)
- dxSetVisible(button21, bool)
- dxSetVisible(button22, bool)
- dxSetVisible(button23, bool)
- dxSetVisible(voltar, bool)
- elseif menu == "Shotguns" then
- dxSetVisible(button24, bool)
- dxSetVisible(button25, bool)
- dxSetVisible(button26, bool)
- dxSetVisible(voltar, bool)
- elseif menu == "Sub-Machine Guns" then
- dxSetVisible(button27, bool)
- dxSetVisible(button28, bool)
- dxSetVisible(button29, bool)
- dxSetVisible(voltar, bool)
- elseif menu == "Principal" then
- dxSetVisible(button2, bool)
- dxSetVisible(button4, bool)
- dxSetVisible(button5, bool)
- dxSetVisible(button6, bool)
- dxSetVisible(button7, bool)
- dxSetVisible(button9, bool)
- dxSetVisible(fechar, bool)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement