Jump to content

شكرا


Recommended Posts

مدري والله بس جرب استبدل الميتا بهذا

    "alizumra" version="1.0"type="script" name="menu" description="menu"/>    "shop.png"/>    "weth.png"/>    "wepo.png"/>    "car.png"/>    "skins.png"/>    "shop/health.png"/>    "shop/armor.png"/>    "shop/fix.png"/>    "shop/flip.png"/>    "shop/invisible.png"/>    "weth/000.png"/>    "weth/18.png"/>    "wepo/30.png"/>    "wepo/24.png"/>    "wepo/25.png"/>    "car/bobcat.png"/>    "car/supergt.png"/>    "car/bullet.png"/>    "car/coaster.png"/>    "car/maverick.png"/>    "car/modaraa.png"/>    "car/ranger.png"/>    "car/tursimo.png"/>    "skins/102.png"/>    "skins/104.png"/>    "skins/108.png"/>    "skins/109.png"/>    

Link to comment
guiSetVisible(wnd, false) 

false -اخفاء النافذه

تبي تشوف النافذه حولها الى

guiSetVisible(wnd, true) 

+ بالنسبة للحجم ،

relative: This is whether sizes and positioning are relative. If this is true, then all x,y,width,height floats must be between 0 and 1, representing sizes/positions as a fraction of the screen size. If false, then the size and co-ordinates are based on client's resolution, accessible using guiGetScreenSize.  

Link to comment

جرب ،

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.86, 0.00, 0.14, 1.00, "", false) 
guiSetVisible(wnd, false) 
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) 
  
wnd2 = guiCreateWindow(0.32, 0.21, 0.31, 0.35, "Shop", true) 
guiWindowSetSizable(wnd2, false) 
guiSetVisible ( wnd2, false ) 
  
shophe = guiCreateStaticImage(45, 28, 80, 77,"shop/health.png", false, wnd2) 
health = guiCreateButton(28, 106, 113, 30, "Health", false, wnd2) 
shopar = guiCreateStaticImage(168, 28, 76, 77,"shop/armor.png", false, wnd2) 
armor = guiCreateButton(151, 106, 113, 30, "Armor", false, wnd2) 
shopfi = guiCreateStaticImage(292, 29, 76, 77, "shop/fix.png", false, wnd2) 
fix = guiCreateButton(274, 105, 113, 31, "Fix", false, wnd2) 
shopfl = guiCreateStaticImage(44, 146, 81, 76,"shop/flip.png", false, wnd2) 
flip = guiCreateButton(28, 222, 113, 30, "Flip", false, wnd2) 
shopin = guiCreateStaticImage(169, 145, 75, 77,"shop/invisible.png", false, wnd2) 
invisible = guiCreateButton(151, 222, 113, 30, "Invisible", false, wnd2) 
  
wnd3 = guiCreateWindow(0.37, 0.32, 0.21, 0.31, "اسلحة خاصة بالثوار", true) 
guiWindowSetSizable(wnd3, false) 
guiSetVisible(wnd3, false) 
guiSetProperty(wnd3, "CaptionColour", "FFFB0000") 
  
thwar = guiCreateStaticImage(161, 54, 111, 111,"weth/000.png", false, wnd3) 
thwar2 = guiCreateStaticImage(23, 51, 102, 114,"weth/18.png", false, wnd3) 
weth1 = guiCreateButton(161, 177, 111, 45, "$300 قاذف الملتوف", false, wnd3) 
guiSetFont(weth1, "default-bold-small") 
guiSetProperty(weth1, "NormalTextColour", "FFFB0000") 
weth2 = guiCreateButton(21, 176, 104, 46, "$50 ملتوف", false, wnd3) 
guiSetFont(weth2, "default-bold-small") 
guiSetProperty(weth2, "NormalTextColour", "FFFB0000")   
  
wnd4 = guiCreateWindow(0.31, 0.37, 0.22, 0.31, "اسلحة خاصة بالمرتزقة", true) 
guiWindowSetSizable(wnd4, false) 
guiSetVisible(wnd4, false) 
guiSetProperty(wnd4, "CaptionColour", "FF0006FE") 
  
police = guiCreateStaticImage(210, 40, 87, 107,"wepo/25.png", false, wnd4) 
police2 = guiCreateStaticImage(10, 40, 88, 107,"wepo/30.png", false, wnd4) 
police3 = guiCreateStaticImage(108, 40, 90, 107,"wepo/24.png", false, wnd4) 
wepo = guiCreateButton(10, 157, 88, 63, "$100 مسيل الدموع", false, wnd4) 
guiSetFont(wepo, "default-bold-small")guiSetProperty(wepo, "NormalTextColour", "FF0059FD") 
wepo2 = guiCreateButton(108, 157, 90, 63, "$500 مسدس", false, wnd4) 
guiSetFont(wepo2, "default-bold-small") 
guiSetProperty(wepo2, "NormalTextColour", "FF0059FD") 
wepo3 = guiCreateButton(211, 157, 86, 63, "$300 شوزن ", false, wnd4) 
guiSetFont(wepo3, "default-bold-small") 
guiSetProperty(wepo3, "NormalTextColour", "FF0059FD")     
  
wnd5 = guiCreateWindow(0.22, 0.23, 0.54, 0.48, "FreeCar", true) 
guiSetVisible(wnd5, false) 
centerWindow ( wnd5, 2, 4 ) 
  
car1 = guiCreateStaticImage(17, 199, 159, 150, "car/maverick.png", false, wnd5) 
setElementData(car1, "tooltip-text", "PoliceMaverick", false) 
car2 = guiCreateStaticImage(192, 33, 165, 150, "car/bobcat.png", false, wnd5) 
setElementData(car2, "tooltip-text", "Bobcat", false) 
car3 = guiCreateStaticImage(374, 33, 167, 150, "car/bullet.png", false, wnd5) 
setElementData(car3, "tooltip-text", "Bullet", false) 
car4 = guiCreateStaticImage(560, 33, 162, 150, "car/supergt.png", false, wnd5) 
setElementData(car4, "tooltip-text", "SuperGT", false) 
car5 = guiCreateStaticImage(17, 34, 158, 149, "car/tursimo.png", false, wnd5) 
setElementData(car5, "tooltip-text", "Tursimo", false) 
car6 = guiCreateStaticImage(192, 199, 165, 150, "car/modaraa.png", false, wnd5) 
setElementData(car6, "tooltip-text", "S.W.A.T", false) 
car7 = guiCreateStaticImage(374, 199, 167, 150, "car/ranger.png", false, wnd5) 
setElementData(car7, "tooltip-text", "Police Ranger", false) 
car8 = guiCreateStaticImage(560, 199, 162, 150, "car/coaster.png", false, wnd5) 
setElementData(car8, "tooltip-text", "Coaster", false) 
  
wnd6 = guiCreateWindow(0.26, 0.25, 0.46, 0.38, "Skins", true) 
guiSetVisible(wnd6, false) 
centerWindow ( wnd6, 2, 4 ) 
  
skin1 = guiCreateStaticImage(15, 30, 138, 244, "skins/102.png", false, wnd6) 
setElementData(skin1, "tooltip-text", "Jeesh $3000", false) 
skin2 = guiCreateStaticImage(168, 30, 138, 244, "skins/104.png", false, wnd6) 
setElementData(skin2, "tooltip-text", "Msawr $3000", false) 
skin3 = guiCreateStaticImage(321, 30, 138, 244, "Skins/108.png", false, wnd6) 
setElementData(skin3, "tooltip-text", "Ninja $2500", false) 
skin4 = guiCreateStaticImage(475, 30, 138, 244, "Skins/109.png", false, wnd6) 
setElementData(skin4, "tooltip-text", "Susake $3500", false) 
  
  
  
addEventHandler ( "onClientGUIClick", resourceRoot, function () 
 if (source == b1) then 
   guiSetVisible (wnd2, true) 
   elseif (source == b2) then 
   guiSetVisible (wnd3, true) 
   elseif (source == b3) then 
   guiSetVisible (wnd4, true) 
   elseif (source == b4) then 
   guiSetVisible (wnd5, true) 
   elseif (source == b5) then 
   guiSetVisible (wnd6, true) 
  end 
end) 
  
  
  
bindKey( "F7", "down", 
    function ( ) 
        guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) 
        showCursor ( guiGetVisible ( wnd ) ) 
        guiSetInputEnabled( guiGetVisible ( wnd ) ) 
        guiSetVisible(wnd, false) 
        guiSetVisible(wnd2, false) 
        guiSetVisible(wnd3, false) 
        guiSetVisible(wnd4, false) 
        guiSetVisible(wnd5, false) 
        guiSetVisible(wnd6, false) 
    end 
    ) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...