THEWORKERz Posted February 21, 2015 Share Posted February 21, 2015 (edited) - Edited February 25, 2015 by Guest Link to comment
The Killer Posted February 21, 2015 Share Posted February 21, 2015 Event # 'onClientGUIClick' function # guiSetVisible Link to comment
THEWORKERz Posted February 21, 2015 Author Share Posted February 21, 2015 (edited) - Edited February 24, 2015 by Guest Link to comment
THEWORKERz Posted February 21, 2015 Author Share Posted February 21, 2015 (edited) - Edited February 24, 2015 by Guest Link to comment
The Killer Posted February 21, 2015 Share Posted February 21, 2015 function centerWindow (center_window) local screenW, screenH = guiGetScreenSize() local windowW, windowH = guiGetSize(center_window, false) local x, y = (screenW - windowW) /2,(screenH - windowH) /2 guiSetPosition(center_window, x, y, false) end wnd = guiCreateWindow(0, 0, 1, 1, "", true) guiSetVisible(wnd, false) guiSetAlpha(wnd, 0) centerWindow( wnd ) b1 = guiCreateStaticImage(1248, 129, 108, 106, "shop.png", false, wnd) setElementData(b1, "tooltip-text", "الشوب", false) b2 = guiCreateStaticImage(1248, 235, 108, 106, "weth.png", false, wnd) setElementData(b2, "tooltip-text", "اسلحة الثوار", false) b3 = guiCreateStaticImage(1248, 370, 108, 89, "wepo.png", false, wnd) setElementData(b3, "tooltip-text", "اسلحة المرتزقة", false) b4 = guiCreateStaticImage(1197, 469, 159, 106, "car.png", false, wnd) setElementData(b4, "tooltip-text", "السيارات", false) b5 = guiCreateStaticImage(1251, 579, 105, 105, "skins.png", false, wnd) setElementData(b5, "tooltip-text", "الشخصيات", false) wnd5 = guiCreateWindow(0.26, 0.25, 0.46, 0.38, "Skins", true) guiSetVisible(wnd5, false) centerWindow ( wnd5, 2, 4 ) skin1 = guiCreateStaticImage(15, 30, 138, 244, "skins/102.png", false, wnd5) setElementData(skin1, "tooltip-text", "Jeesh $3000", false) skin2 = guiCreateStaticImage(168, 30, 138, 244, "skins/104.png", false, wnd5) setElementData(skin2, "tooltip-text", "Msawr $3000", false) skin3 = guiCreateStaticImage(321, 30, 138, 244, "Skins/108.png", false, wnd5) setElementData(skin3, "tooltip-text", "Ninja $2500", false) skin4 = guiCreateStaticImage(475, 30, 138, 244, "Skins/109.png", false, wnd5) setElementData(skin4, "tooltip-text", "Susake $3500", false) addEventHandler ( "onClientGUIClick", resourceRoot, function () if (source == b1) then guiSetVisible (wnd4, true) elseif (source == b2) then guiSetVisible (wnd2, true) elseif (source == b3) then guiSetVisible (wnd3, true) elseif (source == b4) then guiSetVisible (wnd, true) end end) function On() if (guiGetVisible(wnd) == true) then guiSetVisible(wnd, false) guiSetVisible(wnd2, false) showCursor(false) else guiSetVisible(wnd, true) showCursor(true) end end bindKey("F7","down",On) Link to comment
THEWORKERz Posted February 21, 2015 Author Share Posted February 21, 2015 بغيت مبرمج يساعدني في عمل قيم مود Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now