Jump to content

3 طلبات ممكن


EdeN

Recommended Posts

ممكن تصحح لي في اي خطا المارك

شبكته مع الشوب بس مادري شنو فيه مايطلع في الدائره يشتغل مثل الشوبات الي مشبوكه زر

GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.3404,0.237,0.3558,0.4167,"شووب زومبي",true) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(106,256,5,5,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
GUIEditor_TabPanel[2] = guiCreateTabPanel(11,19,466,292,false,GUIEditor_Window[1]) 
GUIEditor_Tab[2] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[1] = guiCreateButton(12,60,76,22,"400",false,GUIEditor_Tab[2]) 
GUIEditor_Image[1] = guiCreateStaticImage(13,14,75,45,"images/ak47.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[2] = guiCreateButton(105,60,76,22,"150",false,GUIEditor_Tab[2]) 
GUIEditor_Image[2] = guiCreateStaticImage(106,17,79,41,"images/deagle.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[3] = guiCreateButton(192,60,76,22,"1500",false,GUIEditor_Tab[2]) 
GUIEditor_Image[3] = guiCreateStaticImage(191,19,82,42,"images/grenade.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[4] = guiCreateButton(278,60,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(280,19,78,43,"images/mp5.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[5] = guiCreateButton(369,60,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(370,22,80,39,"images/m4.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[6] = guiCreateButton(11,209,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[6] = guiCreateStaticImage(11,158,81,54,"images/pistol.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[7] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Image[7] = guiCreateStaticImage(95,162,84,50,"images/pistol-s.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[8] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Button[9] = guiCreateButton(192,209,76,22,"255",false,GUIEditor_Tab[2]) 
GUIEditor_Image[8] = guiCreateStaticImage(192,168,80,45,"images/shotgun.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[10] = guiCreateButton(278,208,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[9] = guiCreateStaticImage(280,171,77,40,"images/sniper.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[11] = guiCreateButton(369,208,76,22,"650",false,GUIEditor_Tab[2]) 
GUIEditor_Image[10] = guiCreateStaticImage(366,174,81,37,"images/spaz-12.png",false,GUIEditor_Tab[2]) 
GUIEditor_Tab[3] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[12] = guiCreateButton(10,59,71,20,"450",false,GUIEditor_Tab[3]) 
GUIEditor_Image[11] = guiCreateStaticImage(10,15,70,46,"images/tec-9.png",false,GUIEditor_Tab[3]) 
GUIEditor_Button[13] = guiCreateButton(87,59,71,20,"300",false,GUIEditor_Tab[3]) 
GUIEditor_Image[12] = guiCreateStaticImage(87,22,73,40,"images/uzi.png",false,GUIEditor_Tab[3]) 
GUIEditor_Label[1] = guiCreateLabel(233,7,207,240,"By:7MoDy",false,GUIEditor_Tab[3]) 
guiSetFont(GUIEditor_Label[1],"sa-header") 
GUIEditor_Label[2] = guiCreateLabel(8,200,216,39,"لسيرفر الزومبي",false,GUIEditor_Tab[3]) 
  
function BuyWeapon(money,id,ammo,name) 
    local m1 = getPlayerMoney(getLocalPlayer()) 
    if ( m1 >= money ) then 
        takePlayerMoney(money) 
        triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) 
        outputChatBox("* You Are Bought " .. name .. "",0,255,0,true) 
    else 
        outputChatBox("* You Don't Have Enough Money",255,0,0,true) 
    end 
end 
  
addEventHandler("onClientGUIClick",getRootElement(), 
    function () 
        if ( source == GUIEditor_Button[1] ) then 
            BuyWeapon(1000,30,1000,"AK47") 
        elseif ( source == GUIEditor_Button[5] ) then 
            BuyWeapon(1500,31,1000,"M4") 
       elseif ( source == GUIEditor_Button[2] ) then 
            BuyWeapon(150,24,950,"Deagle") 
      elseif ( source == GUIEditor_Button[3] ) then 
            BuyWeapon(1500,16,20,"grenade") 
      elseif ( source == GUIEditor_Button[4] ) then 
            BuyWeapon(200,29,500,"mp5") 
  
        end 
    end 
) 
  
addEvent("onBuy",true) 
addEventHandler("onBuy",getRootElement(), 
    function (id,ammo) 
        giveWeapon(source,id,ammo) 
    end 
) 
  
 function marker(hitElement) 
     if getElementType(hitElement) == "player" then  
          if not guiGetVisible(GUIEditor_Window[1]) then  
               guiSetVisible(GUIEditor_Window[1], true)  
               showCursor(true)  
          end 
     end 
end 
addEventHandler("onClientMarkerHit", mArker22, marker) 
  

:crazy::crazy::crazy:

وين كود الماركر؟

createMarker 

Link to comment
  • Replies 73
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

ممكن تصحح لي في اي خطا المارك

شبكته مع الشوب بس مادري شنو فيه مايطلع في الدائره يشتغل مثل الشوبات الي مشبوكه زر

GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.3404,0.237,0.3558,0.4167,"شووب زومبي",true) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(106,256,5,5,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
GUIEditor_TabPanel[2] = guiCreateTabPanel(11,19,466,292,false,GUIEditor_Window[1]) 
GUIEditor_Tab[2] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[1] = guiCreateButton(12,60,76,22,"400",false,GUIEditor_Tab[2]) 
GUIEditor_Image[1] = guiCreateStaticImage(13,14,75,45,"images/ak47.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[2] = guiCreateButton(105,60,76,22,"150",false,GUIEditor_Tab[2]) 
GUIEditor_Image[2] = guiCreateStaticImage(106,17,79,41,"images/deagle.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[3] = guiCreateButton(192,60,76,22,"1500",false,GUIEditor_Tab[2]) 
GUIEditor_Image[3] = guiCreateStaticImage(191,19,82,42,"images/grenade.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[4] = guiCreateButton(278,60,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(280,19,78,43,"images/mp5.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[5] = guiCreateButton(369,60,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(370,22,80,39,"images/m4.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[6] = guiCreateButton(11,209,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[6] = guiCreateStaticImage(11,158,81,54,"images/pistol.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[7] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Image[7] = guiCreateStaticImage(95,162,84,50,"images/pistol-s.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[8] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Button[9] = guiCreateButton(192,209,76,22,"255",false,GUIEditor_Tab[2]) 
GUIEditor_Image[8] = guiCreateStaticImage(192,168,80,45,"images/shotgun.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[10] = guiCreateButton(278,208,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[9] = guiCreateStaticImage(280,171,77,40,"images/sniper.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[11] = guiCreateButton(369,208,76,22,"650",false,GUIEditor_Tab[2]) 
GUIEditor_Image[10] = guiCreateStaticImage(366,174,81,37,"images/spaz-12.png",false,GUIEditor_Tab[2]) 
GUIEditor_Tab[3] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[12] = guiCreateButton(10,59,71,20,"450",false,GUIEditor_Tab[3]) 
GUIEditor_Image[11] = guiCreateStaticImage(10,15,70,46,"images/tec-9.png",false,GUIEditor_Tab[3]) 
GUIEditor_Button[13] = guiCreateButton(87,59,71,20,"300",false,GUIEditor_Tab[3]) 
GUIEditor_Image[12] = guiCreateStaticImage(87,22,73,40,"images/uzi.png",false,GUIEditor_Tab[3]) 
GUIEditor_Label[1] = guiCreateLabel(233,7,207,240,"By:7MoDy",false,GUIEditor_Tab[3]) 
guiSetFont(GUIEditor_Label[1],"sa-header") 
GUIEditor_Label[2] = guiCreateLabel(8,200,216,39,"لسيرفر الزومبي",false,GUIEditor_Tab[3]) 
  
function BuyWeapon(money,id,ammo,name) 
    local m1 = getPlayerMoney(getLocalPlayer()) 
    if ( m1 >= money ) then 
        takePlayerMoney(money) 
        triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) 
        outputChatBox("* You Are Bought " .. name .. "",0,255,0,true) 
    else 
        outputChatBox("* You Don't Have Enough Money",255,0,0,true) 
    end 
end 
  
addEventHandler("onClientGUIClick",getRootElement(), 
    function () 
        if ( source == GUIEditor_Button[1] ) then 
            BuyWeapon(1000,30,1000,"AK47") 
        elseif ( source == GUIEditor_Button[5] ) then 
            BuyWeapon(1500,31,1000,"M4") 
       elseif ( source == GUIEditor_Button[2] ) then 
            BuyWeapon(150,24,950,"Deagle") 
      elseif ( source == GUIEditor_Button[3] ) then 
            BuyWeapon(1500,16,20,"grenade") 
      elseif ( source == GUIEditor_Button[4] ) then 
            BuyWeapon(200,29,500,"mp5") 
  
        end 
    end 
) 
  
addEvent("onBuy",true) 
addEventHandler("onBuy",getRootElement(), 
    function (id,ammo) 
        giveWeapon(source,id,ammo) 
    end 
) 
  
 function marker(hitElement) 
     if getElementType(hitElement) == "player" then  
          if not guiGetVisible(GUIEditor_Window[1]) then  
               guiSetVisible(GUIEditor_Window[1], true)  
               showCursor(true)  
          end 
     end 
end 
addEventHandler("onClientMarkerHit", mArker22, marker) 
  

:crazy::crazy::crazy:

وين كود الماركر؟

createMarker 

هذا الي عطاني ايه تابل

Link to comment
ممكن تصحح لي في اي خطا المارك

شبكته مع الشوب بس مادري شنو فيه مايطلع في الدائره يشتغل مثل الشوبات الي مشبوكه زر

GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.3404,0.237,0.3558,0.4167,"شووب زومبي",true) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(106,256,5,5,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
GUIEditor_TabPanel[2] = guiCreateTabPanel(11,19,466,292,false,GUIEditor_Window[1]) 
GUIEditor_Tab[2] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[1] = guiCreateButton(12,60,76,22,"400",false,GUIEditor_Tab[2]) 
GUIEditor_Image[1] = guiCreateStaticImage(13,14,75,45,"images/ak47.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[2] = guiCreateButton(105,60,76,22,"150",false,GUIEditor_Tab[2]) 
GUIEditor_Image[2] = guiCreateStaticImage(106,17,79,41,"images/deagle.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[3] = guiCreateButton(192,60,76,22,"1500",false,GUIEditor_Tab[2]) 
GUIEditor_Image[3] = guiCreateStaticImage(191,19,82,42,"images/grenade.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[4] = guiCreateButton(278,60,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(280,19,78,43,"images/mp5.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[5] = guiCreateButton(369,60,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(370,22,80,39,"images/m4.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[6] = guiCreateButton(11,209,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[6] = guiCreateStaticImage(11,158,81,54,"images/pistol.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[7] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Image[7] = guiCreateStaticImage(95,162,84,50,"images/pistol-s.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[8] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Button[9] = guiCreateButton(192,209,76,22,"255",false,GUIEditor_Tab[2]) 
GUIEditor_Image[8] = guiCreateStaticImage(192,168,80,45,"images/shotgun.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[10] = guiCreateButton(278,208,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[9] = guiCreateStaticImage(280,171,77,40,"images/sniper.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[11] = guiCreateButton(369,208,76,22,"650",false,GUIEditor_Tab[2]) 
GUIEditor_Image[10] = guiCreateStaticImage(366,174,81,37,"images/spaz-12.png",false,GUIEditor_Tab[2]) 
GUIEditor_Tab[3] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[12] = guiCreateButton(10,59,71,20,"450",false,GUIEditor_Tab[3]) 
GUIEditor_Image[11] = guiCreateStaticImage(10,15,70,46,"images/tec-9.png",false,GUIEditor_Tab[3]) 
GUIEditor_Button[13] = guiCreateButton(87,59,71,20,"300",false,GUIEditor_Tab[3]) 
GUIEditor_Image[12] = guiCreateStaticImage(87,22,73,40,"images/uzi.png",false,GUIEditor_Tab[3]) 
GUIEditor_Label[1] = guiCreateLabel(233,7,207,240,"By:7MoDy",false,GUIEditor_Tab[3]) 
guiSetFont(GUIEditor_Label[1],"sa-header") 
GUIEditor_Label[2] = guiCreateLabel(8,200,216,39,"لسيرفر الزومبي",false,GUIEditor_Tab[3]) 
  
function BuyWeapon(money,id,ammo,name) 
    local m1 = getPlayerMoney(getLocalPlayer()) 
    if ( m1 >= money ) then 
        takePlayerMoney(money) 
        triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) 
        outputChatBox("* You Are Bought " .. name .. "",0,255,0,true) 
    else 
        outputChatBox("* You Don't Have Enough Money",255,0,0,true) 
    end 
end 
  
addEventHandler("onClientGUIClick",getRootElement(), 
    function () 
        if ( source == GUIEditor_Button[1] ) then 
            BuyWeapon(1000,30,1000,"AK47") 
        elseif ( source == GUIEditor_Button[5] ) then 
            BuyWeapon(1500,31,1000,"M4") 
       elseif ( source == GUIEditor_Button[2] ) then 
            BuyWeapon(150,24,950,"Deagle") 
      elseif ( source == GUIEditor_Button[3] ) then 
            BuyWeapon(1500,16,20,"grenade") 
      elseif ( source == GUIEditor_Button[4] ) then 
            BuyWeapon(200,29,500,"mp5") 
  
        end 
    end 
) 
  
addEvent("onBuy",true) 
addEventHandler("onBuy",getRootElement(), 
    function (id,ammo) 
        giveWeapon(source,id,ammo) 
    end 
) 
  
 function marker(hitElement) 
     if getElementType(hitElement) == "player" then  
          if not guiGetVisible(GUIEditor_Window[1]) then  
               guiSetVisible(GUIEditor_Window[1], true)  
               showCursor(true)  
          end 
     end 
end 
addEventHandler("onClientMarkerHit", mArker22, marker) 
  

:crazy::crazy::crazy:

وين كود الماركر؟

createMarker 

هذا الي عطاني ايه تابل

حطيت وضبطته وماستو شيء

Link to comment
ورني كود الي حطيته

  
function consoleCreateMarker ( thePlayer, commandName ) 
   if ( thePlayer ) then 
      local x, y, z = getElementPosition ( thePlayer )  
      local theMarker = createMarker ( x + 2, y + 2, z, "mArker22", 1.5, 255, 255, 0, 170 ) 
      if ( theMarker ) then  
         outputConsole ( "Marker created successfully", thePlayer ) 
      else 
         outputConsole ( "Failed to create marker", thePlayer ) 
      end 
   end 
end 
addCommandHandler ( "createmarker", consoleCreateMarker ) 
  

Link to comment
ي هووووووو ما تفهم؟

حاط لي مثال غير الي تبيه

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

CreateMarker

GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.3404,0.237,0.3558,0.4167,"شووب زومبي",true) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(106,256,5,5,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
GUIEditor_TabPanel[2] = guiCreateTabPanel(11,19,466,292,false,GUIEditor_Window[1]) 
GUIEditor_Tab[2] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[1] = guiCreateButton(12,60,76,22,"400",false,GUIEditor_Tab[2]) 
GUIEditor_Image[1] = guiCreateStaticImage(13,14,75,45,"images/ak47.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[2] = guiCreateButton(105,60,76,22,"150",false,GUIEditor_Tab[2]) 
GUIEditor_Image[2] = guiCreateStaticImage(106,17,79,41,"images/deagle.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[3] = guiCreateButton(192,60,76,22,"1500",false,GUIEditor_Tab[2]) 
GUIEditor_Image[3] = guiCreateStaticImage(191,19,82,42,"images/grenade.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[4] = guiCreateButton(278,60,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(280,19,78,43,"images/mp5.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[5] = guiCreateButton(369,60,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(370,22,80,39,"images/m4.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[6] = guiCreateButton(11,209,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[6] = guiCreateStaticImage(11,158,81,54,"images/pistol.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[7] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Image[7] = guiCreateStaticImage(95,162,84,50,"images/pistol-s.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[8] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Button[9] = guiCreateButton(192,209,76,22,"255",false,GUIEditor_Tab[2]) 
GUIEditor_Image[8] = guiCreateStaticImage(192,168,80,45,"images/shotgun.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[10] = guiCreateButton(278,208,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[9] = guiCreateStaticImage(280,171,77,40,"images/sniper.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[11] = guiCreateButton(369,208,76,22,"650",false,GUIEditor_Tab[2]) 
GUIEditor_Image[10] = guiCreateStaticImage(366,174,81,37,"images/spaz-12.png",false,GUIEditor_Tab[2]) 
GUIEditor_Tab[3] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[12] = guiCreateButton(10,59,71,20,"450",false,GUIEditor_Tab[3]) 
GUIEditor_Image[11] = guiCreateStaticImage(10,15,70,46,"images/tec-9.png",false,GUIEditor_Tab[3]) 
GUIEditor_Button[13] = guiCreateButton(87,59,71,20,"300",false,GUIEditor_Tab[3]) 
GUIEditor_Image[12] = guiCreateStaticImage(87,22,73,40,"images/uzi.png",false,GUIEditor_Tab[3]) 
GUIEditor_Label[1] = guiCreateLabel(233,7,207,240,"By:7MoDy",false,GUIEditor_Tab[3]) 
guiSetFont(GUIEditor_Label[1],"sa-header") 
GUIEditor_Label[2] = guiCreateLabel(8,200,216,39,"لسيرفر الزومبي",false,GUIEditor_Tab[3]) 
  
function BuyWeapon(money,id,ammo,name) 
    local m1 = getPlayerMoney(getLocalPlayer()) 
    if ( m1 >= money ) then 
        takePlayerMoney(money) 
        triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) 
        outputChatBox("* You Are Bought " .. name .. "",0,255,0,true) 
    else 
        outputChatBox("* You Don't Have Enough Money",255,0,0,true) 
    end 
end 
  
addEventHandler("onClientGUIClick",getRootElement(), 
    function () 
        if ( source == GUIEditor_Button[1] ) then 
            BuyWeapon(1000,30,1000,"AK47") 
        elseif ( source == GUIEditor_Button[5] ) then 
            BuyWeapon(1500,31,1000,"M4") 
       elseif ( source == GUIEditor_Button[2] ) then 
            BuyWeapon(150,24,950,"Deagle") 
      elseif ( source == GUIEditor_Button[3] ) then 
            BuyWeapon(1500,16,20,"grenade") 
      elseif ( source == GUIEditor_Button[4] ) then 
            BuyWeapon(200,29,500,"mp5") 
  
        end 
    end 
) 
  
addEvent("onBuy",true) 
addEventHandler("onBuy",getRootElement(), 
    function (id,ammo) 
        giveWeapon(source,id,ammo) 
    end 
) 
  
 function marker(hitElement) 
     if getElementType(hitElement) == "player" then  
          if not guiGetVisible(GUIEditor_Window[1]) then  
               guiSetVisible(GUIEditor_Window[1], true)  
               showCursor(true)  
          end 
     end 
end 
addEventHandler("onClientMarkerHit", mArker22, marker) 
  
createMarker 
  
  

ياخي وش هل مشكله حطيت الي عطيني الشوب ماشتغل ولا طلع في الدائره

Link to comment

استخدم زر lua لاهنت

--------------

شف الكود التالي حطه مع الشوب

الكود كلنت

-- Client side 
local Marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler('onClientMarkerHit', Marker, 
function ( hitPlayer ) 
    if ( hitPlayer == localPlayer ) then 
        guiSetVisible( GUIEditor_Window[1], true ) 
        showCursor( true ) 
    end 
end ) 

x, y, z = احداثيات الدائري الي يوم يخش تفتح النافذة

Link to comment
استخدم زر lua لاهنت

--------------

شف الكود التالي حطه مع الشوب

الكود كلنت

-- Client side 
local Marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler('onClientMarkerHit', Marker, 
function ( hitPlayer ) 
    if ( hitPlayer == localPlayer ) then 
        guiSetVisible( GUIEditor_Window[1], true ) 
        showCursor( true ) 
    end 
end ) 

x, y, z = احداثيات الدائري الي يوم يخش تفتح النافذة

العقرب ماصر شيء شوف

GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.3404,0.237,0.3558,0.4167,"شووب زومبي",true) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(106,256,5,5,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
GUIEditor_TabPanel[2] = guiCreateTabPanel(11,19,466,292,false,GUIEditor_Window[1]) 
GUIEditor_Tab[2] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[1] = guiCreateButton(12,60,76,22,"400",false,GUIEditor_Tab[2]) 
GUIEditor_Image[1] = guiCreateStaticImage(13,14,75,45,"images/ak47.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[2] = guiCreateButton(105,60,76,22,"150",false,GUIEditor_Tab[2]) 
GUIEditor_Image[2] = guiCreateStaticImage(106,17,79,41,"images/deagle.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[3] = guiCreateButton(192,60,76,22,"1500",false,GUIEditor_Tab[2]) 
GUIEditor_Image[3] = guiCreateStaticImage(191,19,82,42,"images/grenade.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[4] = guiCreateButton(278,60,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(280,19,78,43,"images/mp5.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[5] = guiCreateButton(369,60,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(370,22,80,39,"images/m4.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[6] = guiCreateButton(11,209,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[6] = guiCreateStaticImage(11,158,81,54,"images/pistol.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[7] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Image[7] = guiCreateStaticImage(95,162,84,50,"images/pistol-s.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[8] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Button[9] = guiCreateButton(192,209,76,22,"255",false,GUIEditor_Tab[2]) 
GUIEditor_Image[8] = guiCreateStaticImage(192,168,80,45,"images/shotgun.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[10] = guiCreateButton(278,208,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[9] = guiCreateStaticImage(280,171,77,40,"images/sniper.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[11] = guiCreateButton(369,208,76,22,"650",false,GUIEditor_Tab[2]) 
GUIEditor_Image[10] = guiCreateStaticImage(366,174,81,37,"images/spaz-12.png",false,GUIEditor_Tab[2]) 
GUIEditor_Tab[3] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[12] = guiCreateButton(10,59,71,20,"450",false,GUIEditor_Tab[3]) 
GUIEditor_Image[11] = guiCreateStaticImage(10,15,70,46,"images/tec-9.png",false,GUIEditor_Tab[3]) 
GUIEditor_Button[13] = guiCreateButton(87,59,71,20,"300",false,GUIEditor_Tab[3]) 
GUIEditor_Image[12] = guiCreateStaticImage(87,22,73,40,"images/uzi.png",false,GUIEditor_Tab[3]) 
GUIEditor_Label[1] = guiCreateLabel(233,7,207,240,"By:7MoDy",false,GUIEditor_Tab[3]) 
guiSetFont(GUIEditor_Label[1],"sa-header") 
GUIEditor_Label[2] = guiCreateLabel(8,200,216,39,"لسيرفر الزومبي",false,GUIEditor_Tab[3]) 
  
function BuyWeapon(money,id,ammo,name) 
    local m1 = getPlayerMoney(getLocalPlayer()) 
    if ( m1 >= money ) then 
        takePlayerMoney(money) 
        triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) 
        outputChatBox("* You Are Bought " .. name .. "",0,255,0,true) 
    else 
        outputChatBox("* You Don't Have Enough Money",255,0,0,true) 
    end 
end 
  
addEventHandler("onClientGUIClick",getRootElement(), 
    function () 
        if ( source == GUIEditor_Button[1] ) then 
            BuyWeapon(1000,30,1000,"AK47") 
        elseif ( source == GUIEditor_Button[5] ) then 
            BuyWeapon(1500,31,1000,"M4") 
       elseif ( source == GUIEditor_Button[2] ) then 
            BuyWeapon(150,24,950,"Deagle") 
      elseif ( source == GUIEditor_Button[3] ) then 
            BuyWeapon(1500,16,20,"grenade") 
      elseif ( source == GUIEditor_Button[4] ) then 
            BuyWeapon(200,29,500,"mp5") 
  
        end 
    end 
) 
  
addEvent("onBuy",true) 
addEventHandler("onBuy",getRootElement(), 
    function (id,ammo) 
        giveWeapon(source,id,ammo) 
    end 
) 
  
  
  
local Marker = createMarker ( 1367.599609375, -1280, 12.300000190735, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler('onClientMarkerHit', Marker, 
function ( hitPlayer ) 
    if ( hitPlayer == localPlayer ) then 
        guiSetVisible( GUIEditor_Window[1], true ) 
        showCursor( true ) 
    end 
end ) 
  

Link to comment
  
GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.3404,0.237,0.3558,0.4167,"شووب زومبي",true) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(106,256,5,5,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
GUIEditor_TabPanel[2] = guiCreateTabPanel(11,19,466,292,false,GUIEditor_Window[1]) 
GUIEditor_Tab[2] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[1] = guiCreateButton(12,60,76,22,"400",false,GUIEditor_Tab[2]) 
GUIEditor_Image[1] = guiCreateStaticImage(13,14,75,45,"images/ak47.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[2] = guiCreateButton(105,60,76,22,"150",false,GUIEditor_Tab[2]) 
GUIEditor_Image[2] = guiCreateStaticImage(106,17,79,41,"images/deagle.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[3] = guiCreateButton(192,60,76,22,"1500",false,GUIEditor_Tab[2]) 
GUIEditor_Image[3] = guiCreateStaticImage(191,19,82,42,"images/grenade.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[4] = guiCreateButton(278,60,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(280,19,78,43,"images/mp5.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[5] = guiCreateButton(369,60,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(370,22,80,39,"images/m4.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[6] = guiCreateButton(11,209,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[6] = guiCreateStaticImage(11,158,81,54,"images/pistol.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[7] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Image[7] = guiCreateStaticImage(95,162,84,50,"images/pistol-s.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[8] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Button[9] = guiCreateButton(192,209,76,22,"255",false,GUIEditor_Tab[2]) 
GUIEditor_Image[8] = guiCreateStaticImage(192,168,80,45,"images/shotgun.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[10] = guiCreateButton(278,208,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[9] = guiCreateStaticImage(280,171,77,40,"images/sniper.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[11] = guiCreateButton(369,208,76,22,"650",false,GUIEditor_Tab[2]) 
GUIEditor_Image[10] = guiCreateStaticImage(366,174,81,37,"images/spaz-12.png",false,GUIEditor_Tab[2]) 
GUIEditor_Tab[3] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[12] = guiCreateButton(10,59,71,20,"450",false,GUIEditor_Tab[3]) 
GUIEditor_Image[11] = guiCreateStaticImage(10,15,70,46,"images/tec-9.png",false,GUIEditor_Tab[3]) 
GUIEditor_Button[13] = guiCreateButton(87,59,71,20,"300",false,GUIEditor_Tab[3]) 
GUIEditor_Image[12] = guiCreateStaticImage(87,22,73,40,"images/uzi.png",false,GUIEditor_Tab[3]) 
GUIEditor_Label[1] = guiCreateLabel(233,7,207,240,"By:7MoDy",false,GUIEditor_Tab[3]) 
guiSetFont(GUIEditor_Label[1],"sa-header") 
GUIEditor_Label[2] = guiCreateLabel(8,200,216,39,"لسيرفر الزومبي",false,GUIEditor_Tab[3]) 
guiSetVisible(GUIEditor_Window[1],false) 
  
function BuyWeapon(money,id,ammo,name) 
    local m1 = getPlayerMoney(getLocalPlayer()) 
    if ( m1 >= money ) then 
        takePlayerMoney(money) 
        triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) 
        outputChatBox("* You Are Bought " .. name .. "",0,255,0,true) 
    else 
        outputChatBox("* You Don't Have Enough Money",255,0,0,true) 
    end 
end 
  
addEventHandler("onClientGUIClick",getRootElement(), 
    function () 
        if ( source == GUIEditor_Button[1] ) then 
            BuyWeapon(1000,30,1000,"AK47") 
        elseif ( source == GUIEditor_Button[5] ) then 
            BuyWeapon(1500,31,1000,"M4") 
        elseif ( source == GUIEditor_Button[2] ) then 
            BuyWeapon(150,24,950,"Deagle") 
        elseif ( source == GUIEditor_Button[3] ) then 
            BuyWeapon(1500,16,20,"grenade") 
        elseif ( source == GUIEditor_Button[4] ) then 
            BuyWeapon(200,29,500,"mp5") 
  
        end 
    end 
) 
  
addEvent("onBuy",true) 
addEventHandler("onBuy",getRootElement(), 
    function (id,ammo) 
        giveWeapon(source,id,ammo) 
    end 
) 
  
local Marker = createMarker ( 1367.599609375, -1280, 12.300000190735, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler('onClientMarkerHit', Marker, 
    function ( hitPlayer ) 
        if ( hitPlayer == localPlayer ) then 
            guiSetVisible( GUIEditor_Window[1], true ) 
            showCursor( true ) 
        end 
    end  
) 
  

ولآ تنسى تحط بالميتآ كلنت @@"

Link to comment
    GUIEditor_Window = {} 
    GUIEditor_TabPanel = {} 
    GUIEditor_Tab = {} 
    GUIEditor_Button = {} 
    GUIEditor_Label = {} 
    GUIEditor_Image = {} 
      
    GUIEditor_Window[1] = guiCreateWindow(0.3404,0.237,0.3558,0.4167,"شووب زومبي",true) 
    GUIEditor_TabPanel[1] = guiCreateTabPanel(106,256,5,5,false,GUIEditor_Window[1]) 
    GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
    GUIEditor_TabPanel[2] = guiCreateTabPanel(11,19,466,292,false,GUIEditor_Window[1]) 
    GUIEditor_Tab[2] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[2]) 
    GUIEditor_Button[1] = guiCreateButton(12,60,76,22,"400",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[1] = guiCreateStaticImage(13,14,75,45,"images/ak47.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[2] = guiCreateButton(105,60,76,22,"150",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[2] = guiCreateStaticImage(106,17,79,41,"images/deagle.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[3] = guiCreateButton(192,60,76,22,"1500",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[3] = guiCreateStaticImage(191,19,82,42,"images/grenade.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[4] = guiCreateButton(278,60,76,22,"200",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[4] = guiCreateStaticImage(280,19,78,43,"images/mp5.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[5] = guiCreateButton(369,60,76,22,"250",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[5] = guiCreateStaticImage(370,22,80,39,"images/m4.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[6] = guiCreateButton(11,209,76,22,"200",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[6] = guiCreateStaticImage(11,158,81,54,"images/pistol.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[7] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[7] = guiCreateStaticImage(95,162,84,50,"images/pistol-s.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[8] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[9] = guiCreateButton(192,209,76,22,"255",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[8] = guiCreateStaticImage(192,168,80,45,"images/shotgun.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[10] = guiCreateButton(278,208,76,22,"250",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[9] = guiCreateStaticImage(280,171,77,40,"images/sniper.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[11] = guiCreateButton(369,208,76,22,"650",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[10] = guiCreateStaticImage(366,174,81,37,"images/spaz-12.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Tab[3] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[2]) 
    GUIEditor_Button[12] = guiCreateButton(10,59,71,20,"450",false,GUIEditor_Tab[3]) 
    GUIEditor_Image[11] = guiCreateStaticImage(10,15,70,46,"images/tec-9.png",false,GUIEditor_Tab[3]) 
    GUIEditor_Button[13] = guiCreateButton(87,59,71,20,"300",false,GUIEditor_Tab[3]) 
    GUIEditor_Image[12] = guiCreateStaticImage(87,22,73,40,"images/uzi.png",false,GUIEditor_Tab[3]) 
    GUIEditor_Label[1] = guiCreateLabel(233,7,207,240,"By:7MoDy",false,GUIEditor_Tab[3]) 
    guiSetFont(GUIEditor_Label[1],"sa-header") 
    GUIEditor_Label[2] = guiCreateLabel(8,200,216,39,"لسيرفر الزومبي",false,GUIEditor_Tab[3]) 
      
    function BuyWeapon(money,id,ammo,name) 
        local m1 = getPlayerMoney(getLocalPlayer()) 
        if ( m1 >= money ) then 
            takePlayerMoney(money) 
            triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) 
            outputChatBox("* You Are Bought " .. name .. "",0,255,0,true) 
        else 
            outputChatBox("* You Don't Have Enough Money",255,0,0,true) 
        end 
    end 
      
    addEventHandler("onClientGUIClick",getRootElement(), 
        function () 
            if ( source == GUIEditor_Button[1] ) then 
                BuyWeapon(1000,30,1000,"AK47") 
            elseif ( source == GUIEditor_Button[5] ) then 
                BuyWeapon(1500,31,1000,"M4") 
           elseif ( source == GUIEditor_Button[2] ) then 
                BuyWeapon(150,24,950,"Deagle") 
          elseif ( source == GUIEditor_Button[3] ) then 
                BuyWeapon(1500,16,20,"grenade") 
          elseif ( source == GUIEditor_Button[4] ) then 
                BuyWeapon(200,29,500,"mp5") 
      
            end 
        end 
    ) 
      
    addEvent("onBuy",true) 
    addEventHandler("onBuy",getRootElement(), 
        function (id,ammo) 
            giveWeapon(source,id,ammo) 
        end 
    ) 
      
      
      
    local Marker = createMarker ( 1367.599609375, -1280, 12.300000190735, "cylinder", 1.5, 255, 0, 0, 255 ) 
      
function marker(hitElement) 
     if getElementType(hitElement) == "player" then 
          if not guiGetVisible(GUIEditor_Window[1]) then 
               guiSetVisible(GUIEditor_Window[1], true) 
               showCursor(true) 
          end 
     end 
end 
addEventHandler("onClientMarkerHit", Marker, marker) 

Link to comment
    GUIEditor_Window = {} 
    GUIEditor_TabPanel = {} 
    GUIEditor_Tab = {} 
    GUIEditor_Button = {} 
    GUIEditor_Label = {} 
    GUIEditor_Image = {} 
      
    GUIEditor_Window[1] = guiCreateWindow(0.3404,0.237,0.3558,0.4167,"شووب زومبي",true) 
    GUIEditor_TabPanel[1] = guiCreateTabPanel(106,256,5,5,false,GUIEditor_Window[1]) 
    GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
    GUIEditor_TabPanel[2] = guiCreateTabPanel(11,19,466,292,false,GUIEditor_Window[1]) 
    GUIEditor_Tab[2] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[2]) 
    GUIEditor_Button[1] = guiCreateButton(12,60,76,22,"400",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[1] = guiCreateStaticImage(13,14,75,45,"images/ak47.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[2] = guiCreateButton(105,60,76,22,"150",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[2] = guiCreateStaticImage(106,17,79,41,"images/deagle.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[3] = guiCreateButton(192,60,76,22,"1500",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[3] = guiCreateStaticImage(191,19,82,42,"images/grenade.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[4] = guiCreateButton(278,60,76,22,"200",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[4] = guiCreateStaticImage(280,19,78,43,"images/mp5.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[5] = guiCreateButton(369,60,76,22,"250",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[5] = guiCreateStaticImage(370,22,80,39,"images/m4.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[6] = guiCreateButton(11,209,76,22,"200",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[6] = guiCreateStaticImage(11,158,81,54,"images/pistol.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[7] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[7] = guiCreateStaticImage(95,162,84,50,"images/pistol-s.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[8] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[9] = guiCreateButton(192,209,76,22,"255",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[8] = guiCreateStaticImage(192,168,80,45,"images/shotgun.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[10] = guiCreateButton(278,208,76,22,"250",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[9] = guiCreateStaticImage(280,171,77,40,"images/sniper.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Button[11] = guiCreateButton(369,208,76,22,"650",false,GUIEditor_Tab[2]) 
    GUIEditor_Image[10] = guiCreateStaticImage(366,174,81,37,"images/spaz-12.png",false,GUIEditor_Tab[2]) 
    GUIEditor_Tab[3] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[2]) 
    GUIEditor_Button[12] = guiCreateButton(10,59,71,20,"450",false,GUIEditor_Tab[3]) 
    GUIEditor_Image[11] = guiCreateStaticImage(10,15,70,46,"images/tec-9.png",false,GUIEditor_Tab[3]) 
    GUIEditor_Button[13] = guiCreateButton(87,59,71,20,"300",false,GUIEditor_Tab[3]) 
    GUIEditor_Image[12] = guiCreateStaticImage(87,22,73,40,"images/uzi.png",false,GUIEditor_Tab[3]) 
    GUIEditor_Label[1] = guiCreateLabel(233,7,207,240,"By:7MoDy",false,GUIEditor_Tab[3]) 
    guiSetFont(GUIEditor_Label[1],"sa-header") 
    GUIEditor_Label[2] = guiCreateLabel(8,200,216,39,"لسيرفر الزومبي",false,GUIEditor_Tab[3]) 
      
    function BuyWeapon(money,id,ammo,name) 
        local m1 = getPlayerMoney(getLocalPlayer()) 
        if ( m1 >= money ) then 
            takePlayerMoney(money) 
            triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) 
            outputChatBox("* You Are Bought " .. name .. "",0,255,0,true) 
        else 
            outputChatBox("* You Don't Have Enough Money",255,0,0,true) 
        end 
    end 
      
    addEventHandler("onClientGUIClick",getRootElement(), 
        function () 
            if ( source == GUIEditor_Button[1] ) then 
                BuyWeapon(1000,30,1000,"AK47") 
            elseif ( source == GUIEditor_Button[5] ) then 
                BuyWeapon(1500,31,1000,"M4") 
           elseif ( source == GUIEditor_Button[2] ) then 
                BuyWeapon(150,24,950,"Deagle") 
          elseif ( source == GUIEditor_Button[3] ) then 
                BuyWeapon(1500,16,20,"grenade") 
          elseif ( source == GUIEditor_Button[4] ) then 
                BuyWeapon(200,29,500,"mp5") 
      
            end 
        end 
    ) 
      
    addEvent("onBuy",true) 
    addEventHandler("onBuy",getRootElement(), 
        function (id,ammo) 
            giveWeapon(source,id,ammo) 
        end 
    ) 
      
      
      
    local Marker = createMarker ( 1367.599609375, -1280, 12.300000190735, "cylinder", 1.5, 255, 0, 0, 255 ) 
      
function marker(hitElement) 
     if getElementType(hitElement) == "player" then 
          if not guiGetVisible(GUIEditor_Window[1]) then 
               guiSetVisible(GUIEditor_Window[1], true) 
               showCursor(true) 
          end 
     end 
end 
addEventHandler("onClientMarkerHit", Marker, marker) 

شوف الي عطيتني شغال يشتغل وان مو داخل الدائره

Link to comment
        GUIEditor_Window = {} 
        GUIEditor_TabPanel = {} 
        GUIEditor_Tab = {} 
        GUIEditor_Button = {} 
        GUIEditor_Label = {} 
        GUIEditor_Image = {} 
          
        GUIEditor_Window[1] = guiCreateWindow(0.3404,0.237,0.3558,0.4167,"شووب زومبي",true) 
                   guiSetVisible(GUIEditor_Window[1], false) 
        GUIEditor_TabPanel[1] = guiCreateTabPanel(106,256,5,5,false,GUIEditor_Window[1]) 
        GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
        GUIEditor_TabPanel[2] = guiCreateTabPanel(11,19,466,292,false,GUIEditor_Window[1]) 
        GUIEditor_Tab[2] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[2]) 
        GUIEditor_Button[1] = guiCreateButton(12,60,76,22,"400",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[1] = guiCreateStaticImage(13,14,75,45,"images/ak47.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[2] = guiCreateButton(105,60,76,22,"150",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[2] = guiCreateStaticImage(106,17,79,41,"images/deagle.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[3] = guiCreateButton(192,60,76,22,"1500",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[3] = guiCreateStaticImage(191,19,82,42,"images/grenade.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[4] = guiCreateButton(278,60,76,22,"200",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[4] = guiCreateStaticImage(280,19,78,43,"images/mp5.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[5] = guiCreateButton(369,60,76,22,"250",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[5] = guiCreateStaticImage(370,22,80,39,"images/m4.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[6] = guiCreateButton(11,209,76,22,"200",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[6] = guiCreateStaticImage(11,158,81,54,"images/pistol.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[7] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[7] = guiCreateStaticImage(95,162,84,50,"images/pistol-s.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[8] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[9] = guiCreateButton(192,209,76,22,"255",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[8] = guiCreateStaticImage(192,168,80,45,"images/shotgun.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[10] = guiCreateButton(278,208,76,22,"250",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[9] = guiCreateStaticImage(280,171,77,40,"images/sniper.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[11] = guiCreateButton(369,208,76,22,"650",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[10] = guiCreateStaticImage(366,174,81,37,"images/spaz-12.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Tab[3] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[2]) 
        GUIEditor_Button[12] = guiCreateButton(10,59,71,20,"450",false,GUIEditor_Tab[3]) 
        GUIEditor_Image[11] = guiCreateStaticImage(10,15,70,46,"images/tec-9.png",false,GUIEditor_Tab[3]) 
        GUIEditor_Button[13] = guiCreateButton(87,59,71,20,"300",false,GUIEditor_Tab[3]) 
        GUIEditor_Image[12] = guiCreateStaticImage(87,22,73,40,"images/uzi.png",false,GUIEditor_Tab[3]) 
        GUIEditor_Label[1] = guiCreateLabel(233,7,207,240,"By:7MoDy",false,GUIEditor_Tab[3]) 
        guiSetFont(GUIEditor_Label[1],"sa-header") 
        GUIEditor_Label[2] = guiCreateLabel(8,200,216,39,"لسيرفر الزومبي",false,GUIEditor_Tab[3]) 
          
        function BuyWeapon(money,id,ammo,name) 
            local m1 = getPlayerMoney(getLocalPlayer()) 
            if ( m1 >= money ) then 
                takePlayerMoney(money) 
                triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) 
                outputChatBox("* You Are Bought " .. name .. "",0,255,0,true) 
            else 
                outputChatBox("* You Don't Have Enough Money",255,0,0,true) 
            end 
        end 
          
        addEventHandler("onClientGUIClick",getRootElement(), 
            function () 
                if ( source == GUIEditor_Button[1] ) then 
                    BuyWeapon(1000,30,1000,"AK47") 
                elseif ( source == GUIEditor_Button[5] ) then 
                    BuyWeapon(1500,31,1000,"M4") 
               elseif ( source == GUIEditor_Button[2] ) then 
                    BuyWeapon(150,24,950,"Deagle") 
              elseif ( source == GUIEditor_Button[3] ) then 
                    BuyWeapon(1500,16,20,"grenade") 
              elseif ( source == GUIEditor_Button[4] ) then 
                    BuyWeapon(200,29,500,"mp5") 
          
                end 
            end 
        ) 
          
        addEvent("onBuy",true) 
        addEventHandler("onBuy",getRootElement(), 
            function (id,ammo) 
                giveWeapon(source,id,ammo) 
            end 
        ) 
          
          
          
        local Marker = createMarker ( 1367.599609375, -1280, 12.300000190735, "cylinder", 1.5, 255, 0, 0, 255 ) 
          
    function marker(hitElement) 
         if getElementType(hitElement) == "player" then 
              if not guiGetVisible(GUIEditor_Window[1]) then 
                   guiSetVisible(GUIEditor_Window[1], true) 
                   showCursor(true) 
              end 
         end 
    end 
    addEventHandler("onClientMarkerHit", Marker, marker) 

Link to comment

again :arrowdown:

  
GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.3404,0.237,0.3558,0.4167,"شووب زومبي",true) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(106,256,5,5,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
GUIEditor_TabPanel[2] = guiCreateTabPanel(11,19,466,292,false,GUIEditor_Window[1]) 
GUIEditor_Tab[2] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[1] = guiCreateButton(12,60,76,22,"400",false,GUIEditor_Tab[2]) 
GUIEditor_Image[1] = guiCreateStaticImage(13,14,75,45,"images/ak47.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[2] = guiCreateButton(105,60,76,22,"150",false,GUIEditor_Tab[2]) 
GUIEditor_Image[2] = guiCreateStaticImage(106,17,79,41,"images/deagle.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[3] = guiCreateButton(192,60,76,22,"1500",false,GUIEditor_Tab[2]) 
GUIEditor_Image[3] = guiCreateStaticImage(191,19,82,42,"images/grenade.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[4] = guiCreateButton(278,60,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(280,19,78,43,"images/mp5.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[5] = guiCreateButton(369,60,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(370,22,80,39,"images/m4.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[6] = guiCreateButton(11,209,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[6] = guiCreateStaticImage(11,158,81,54,"images/pistol.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[7] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Image[7] = guiCreateStaticImage(95,162,84,50,"images/pistol-s.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[8] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Button[9] = guiCreateButton(192,209,76,22,"255",false,GUIEditor_Tab[2]) 
GUIEditor_Image[8] = guiCreateStaticImage(192,168,80,45,"images/shotgun.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[10] = guiCreateButton(278,208,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[9] = guiCreateStaticImage(280,171,77,40,"images/sniper.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[11] = guiCreateButton(369,208,76,22,"650",false,GUIEditor_Tab[2]) 
GUIEditor_Image[10] = guiCreateStaticImage(366,174,81,37,"images/spaz-12.png",false,GUIEditor_Tab[2]) 
GUIEditor_Tab[3] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[12] = guiCreateButton(10,59,71,20,"450",false,GUIEditor_Tab[3]) 
GUIEditor_Image[11] = guiCreateStaticImage(10,15,70,46,"images/tec-9.png",false,GUIEditor_Tab[3]) 
GUIEditor_Button[13] = guiCreateButton(87,59,71,20,"300",false,GUIEditor_Tab[3]) 
GUIEditor_Image[12] = guiCreateStaticImage(87,22,73,40,"images/uzi.png",false,GUIEditor_Tab[3]) 
GUIEditor_Label[1] = guiCreateLabel(233,7,207,240,"By:7MoDy",false,GUIEditor_Tab[3]) 
guiSetFont(GUIEditor_Label[1],"sa-header") 
GUIEditor_Label[2] = guiCreateLabel(8,200,216,39,"لسيرفر الزومبي",false,GUIEditor_Tab[3]) 
guiSetVisible(GUIEditor_Window[1],false) 
  
function BuyWeapon(money,id,ammo,name) 
    local m1 = getPlayerMoney(getLocalPlayer()) 
    if ( m1 >= money ) then 
        takePlayerMoney(money) 
        triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) 
        outputChatBox("* You Are Bought " .. name .. "",0,255,0,true) 
    else 
        outputChatBox("* You Don't Have Enough Money",255,0,0,true) 
    end 
end 
  
addEventHandler("onClientGUIClick",getRootElement(), 
    function () 
        if ( source == GUIEditor_Button[1] ) then 
            BuyWeapon(1000,30,1000,"AK47") 
        elseif ( source == GUIEditor_Button[5] ) then 
            BuyWeapon(1500,31,1000,"M4") 
        elseif ( source == GUIEditor_Button[2] ) then 
            BuyWeapon(150,24,950,"Deagle") 
        elseif ( source == GUIEditor_Button[3] ) then 
            BuyWeapon(1500,16,20,"grenade") 
        elseif ( source == GUIEditor_Button[4] ) then 
            BuyWeapon(200,29,500,"mp5") 
  
        end 
    end 
) 
  
addEvent("onBuy",true) 
addEventHandler("onBuy",getRootElement(), 
    function (id,ammo) 
        giveWeapon(source,id,ammo) 
    end 
) 
  
local Marker = createMarker ( 1367.599609375, -1280, 12.300000190735, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler('onClientMarkerHit', Marker, 
    function ( hitPlayer ) 
        if ( hitPlayer == localPlayer ) then 
            guiSetVisible( GUIEditor_Window[1], true ) 
            showCursor( true ) 
        end 
    end  
) 
  

ولآ تنسى تحط بالميتآ كلنت @@"

Link to comment
        GUIEditor_Window = {} 
        GUIEditor_TabPanel = {} 
        GUIEditor_Tab = {} 
        GUIEditor_Button = {} 
        GUIEditor_Label = {} 
        GUIEditor_Image = {} 
          
        GUIEditor_Window[1] = guiCreateWindow(0.3404,0.237,0.3558,0.4167,"شووب زومبي",true) 
                   guiSetVisible(GUIEditor_Window[1], false) 
        GUIEditor_TabPanel[1] = guiCreateTabPanel(106,256,5,5,false,GUIEditor_Window[1]) 
        GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
        GUIEditor_TabPanel[2] = guiCreateTabPanel(11,19,466,292,false,GUIEditor_Window[1]) 
        GUIEditor_Tab[2] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[2]) 
        GUIEditor_Button[1] = guiCreateButton(12,60,76,22,"400",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[1] = guiCreateStaticImage(13,14,75,45,"images/ak47.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[2] = guiCreateButton(105,60,76,22,"150",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[2] = guiCreateStaticImage(106,17,79,41,"images/deagle.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[3] = guiCreateButton(192,60,76,22,"1500",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[3] = guiCreateStaticImage(191,19,82,42,"images/grenade.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[4] = guiCreateButton(278,60,76,22,"200",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[4] = guiCreateStaticImage(280,19,78,43,"images/mp5.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[5] = guiCreateButton(369,60,76,22,"250",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[5] = guiCreateStaticImage(370,22,80,39,"images/m4.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[6] = guiCreateButton(11,209,76,22,"200",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[6] = guiCreateStaticImage(11,158,81,54,"images/pistol.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[7] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[7] = guiCreateStaticImage(95,162,84,50,"images/pistol-s.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[8] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[9] = guiCreateButton(192,209,76,22,"255",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[8] = guiCreateStaticImage(192,168,80,45,"images/shotgun.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[10] = guiCreateButton(278,208,76,22,"250",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[9] = guiCreateStaticImage(280,171,77,40,"images/sniper.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Button[11] = guiCreateButton(369,208,76,22,"650",false,GUIEditor_Tab[2]) 
        GUIEditor_Image[10] = guiCreateStaticImage(366,174,81,37,"images/spaz-12.png",false,GUIEditor_Tab[2]) 
        GUIEditor_Tab[3] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[2]) 
        GUIEditor_Button[12] = guiCreateButton(10,59,71,20,"450",false,GUIEditor_Tab[3]) 
        GUIEditor_Image[11] = guiCreateStaticImage(10,15,70,46,"images/tec-9.png",false,GUIEditor_Tab[3]) 
        GUIEditor_Button[13] = guiCreateButton(87,59,71,20,"300",false,GUIEditor_Tab[3]) 
        GUIEditor_Image[12] = guiCreateStaticImage(87,22,73,40,"images/uzi.png",false,GUIEditor_Tab[3]) 
        GUIEditor_Label[1] = guiCreateLabel(233,7,207,240,"By:7MoDy",false,GUIEditor_Tab[3]) 
        guiSetFont(GUIEditor_Label[1],"sa-header") 
        GUIEditor_Label[2] = guiCreateLabel(8,200,216,39,"لسيرفر الزومبي",false,GUIEditor_Tab[3]) 
          
        function BuyWeapon(money,id,ammo,name) 
            local m1 = getPlayerMoney(getLocalPlayer()) 
            if ( m1 >= money ) then 
                takePlayerMoney(money) 
                triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) 
                outputChatBox("* You Are Bought " .. name .. "",0,255,0,true) 
            else 
                outputChatBox("* You Don't Have Enough Money",255,0,0,true) 
            end 
        end 
          
        addEventHandler("onClientGUIClick",getRootElement(), 
            function () 
                if ( source == GUIEditor_Button[1] ) then 
                    BuyWeapon(1000,30,1000,"AK47") 
                elseif ( source == GUIEditor_Button[5] ) then 
                    BuyWeapon(1500,31,1000,"M4") 
               elseif ( source == GUIEditor_Button[2] ) then 
                    BuyWeapon(150,24,950,"Deagle") 
              elseif ( source == GUIEditor_Button[3] ) then 
                    BuyWeapon(1500,16,20,"grenade") 
              elseif ( source == GUIEditor_Button[4] ) then 
                    BuyWeapon(200,29,500,"mp5") 
          
                end 
            end 
        ) 
          
        addEvent("onBuy",true) 
        addEventHandler("onBuy",getRootElement(), 
            function (id,ammo) 
                giveWeapon(source,id,ammo) 
            end 
        ) 
          
          
          
        local Marker = createMarker ( 1367.599609375, -1280, 12.300000190735, "cylinder", 1.5, 255, 0, 0, 255 ) 
          
    function marker(hitElement) 
         if getElementType(hitElement) == "player" then 
              if not guiGetVisible(GUIEditor_Window[1]) then 
                   guiSetVisible(GUIEditor_Window[1], true) 
                   showCursor(true) 
              end 
         end 
    end 
    addEventHandler("onClientMarkerHit", Marker, marker) 

فيه مشكله يمكن المشكله سهل عندك هي لمن احد دخل الدائره يطلع حق الي في ا لسيرفر كله الشوب

Link to comment
again :arrowdown:
  
GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.3404,0.237,0.3558,0.4167,"شووب زومبي",true) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(106,256,5,5,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
GUIEditor_TabPanel[2] = guiCreateTabPanel(11,19,466,292,false,GUIEditor_Window[1]) 
GUIEditor_Tab[2] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[1] = guiCreateButton(12,60,76,22,"400",false,GUIEditor_Tab[2]) 
GUIEditor_Image[1] = guiCreateStaticImage(13,14,75,45,"images/ak47.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[2] = guiCreateButton(105,60,76,22,"150",false,GUIEditor_Tab[2]) 
GUIEditor_Image[2] = guiCreateStaticImage(106,17,79,41,"images/deagle.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[3] = guiCreateButton(192,60,76,22,"1500",false,GUIEditor_Tab[2]) 
GUIEditor_Image[3] = guiCreateStaticImage(191,19,82,42,"images/grenade.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[4] = guiCreateButton(278,60,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(280,19,78,43,"images/mp5.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[5] = guiCreateButton(369,60,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[5] = guiCreateStaticImage(370,22,80,39,"images/m4.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[6] = guiCreateButton(11,209,76,22,"200",false,GUIEditor_Tab[2]) 
GUIEditor_Image[6] = guiCreateStaticImage(11,158,81,54,"images/pistol.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[7] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Image[7] = guiCreateStaticImage(95,162,84,50,"images/pistol-s.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[8] = guiCreateButton(98,209,76,22,"100",false,GUIEditor_Tab[2]) 
GUIEditor_Button[9] = guiCreateButton(192,209,76,22,"255",false,GUIEditor_Tab[2]) 
GUIEditor_Image[8] = guiCreateStaticImage(192,168,80,45,"images/shotgun.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[10] = guiCreateButton(278,208,76,22,"250",false,GUIEditor_Tab[2]) 
GUIEditor_Image[9] = guiCreateStaticImage(280,171,77,40,"images/sniper.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[11] = guiCreateButton(369,208,76,22,"650",false,GUIEditor_Tab[2]) 
GUIEditor_Image[10] = guiCreateStaticImage(366,174,81,37,"images/spaz-12.png",false,GUIEditor_Tab[2]) 
GUIEditor_Tab[3] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[2]) 
GUIEditor_Button[12] = guiCreateButton(10,59,71,20,"450",false,GUIEditor_Tab[3]) 
GUIEditor_Image[11] = guiCreateStaticImage(10,15,70,46,"images/tec-9.png",false,GUIEditor_Tab[3]) 
GUIEditor_Button[13] = guiCreateButton(87,59,71,20,"300",false,GUIEditor_Tab[3]) 
GUIEditor_Image[12] = guiCreateStaticImage(87,22,73,40,"images/uzi.png",false,GUIEditor_Tab[3]) 
GUIEditor_Label[1] = guiCreateLabel(233,7,207,240,"By:7MoDy",false,GUIEditor_Tab[3]) 
guiSetFont(GUIEditor_Label[1],"sa-header") 
GUIEditor_Label[2] = guiCreateLabel(8,200,216,39,"لسيرفر الزومبي",false,GUIEditor_Tab[3]) 
guiSetVisible(GUIEditor_Window[1],false) 
  
function BuyWeapon(money,id,ammo,name) 
    local m1 = getPlayerMoney(getLocalPlayer()) 
    if ( m1 >= money ) then 
        takePlayerMoney(money) 
        triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) 
        outputChatBox("* You Are Bought " .. name .. "",0,255,0,true) 
    else 
        outputChatBox("* You Don't Have Enough Money",255,0,0,true) 
    end 
end 
  
addEventHandler("onClientGUIClick",getRootElement(), 
    function () 
        if ( source == GUIEditor_Button[1] ) then 
            BuyWeapon(1000,30,1000,"AK47") 
        elseif ( source == GUIEditor_Button[5] ) then 
            BuyWeapon(1500,31,1000,"M4") 
        elseif ( source == GUIEditor_Button[2] ) then 
            BuyWeapon(150,24,950,"Deagle") 
        elseif ( source == GUIEditor_Button[3] ) then 
            BuyWeapon(1500,16,20,"grenade") 
        elseif ( source == GUIEditor_Button[4] ) then 
            BuyWeapon(200,29,500,"mp5") 
  
        end 
    end 
) 
  
addEvent("onBuy",true) 
addEventHandler("onBuy",getRootElement(), 
    function (id,ammo) 
        giveWeapon(source,id,ammo) 
    end 
) 
  
local Marker = createMarker ( 1367.599609375, -1280, 12.300000190735, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler('onClientMarkerHit', Marker, 
    function ( hitPlayer ) 
        if ( hitPlayer == localPlayer ) then 
            guiSetVisible( GUIEditor_Window[1], true ) 
            showCursor( true ) 
        end 
    end  
) 
  

ولآ تنسى تحط بالميتآ كلنت @@"

عناد الان تمام

اول واحد عطيتني خربان الحين تمام

مشكوور عناد

Link to comment

شباب ازعجتكم بس سويت شوب ارتب من القديم

الحين لمن اشغل المود يشتغل في الشاشه صارت وعدله عناد ممكن تعدلوه لي

GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.1852,0.1393,0.6303,0.6719,"شوب حمودي",true) 
GUIEditor_Button[1] = guiCreateButton(831,19,19,20,"x",false,GUIEditor_Window[1]) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(9,42,843,465,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("Shop-1#",GUIEditor_TabPanel[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(21,20,172,134,"images/deagle.png",false,GUIEditor_Tab[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(210,23,168,127,"images/ak47.png",false,GUIEditor_Tab[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(400,19,185,135,"images/m4.png",false,GUIEditor_Tab[1]) 
GUIEditor_Image[4] = guiCreateStaticImage(609,19,186,134,"images/mp5.png",false,GUIEditor_Tab[1]) 
GUIEditor_Button[2] = guiCreateButton(34,157,146,36,"150",false,GUIEditor_Tab[1]) 
GUIEditor_Button[3] = guiCreateButton(216,158,146,36,"230",false,GUIEditor_Tab[1]) 
GUIEditor_Button[4] = guiCreateButton(416,159,146,36,"200",false,GUIEditor_Tab[1]) 
GUIEditor_Button[5] = guiCreateButton(628,159,146,36,"170",false,GUIEditor_Tab[1]) 
GUIEditor_Image[5] = guiCreateStaticImage(215,228,180,150,"images/pistol-s.png",false,GUIEditor_Tab[1]) 
GUIEditor_Image[6] = guiCreateStaticImage(9,229,188,149,"images/pistol.png",false,GUIEditor_Tab[1]) 
GUIEditor_Image[7] = guiCreateStaticImage(404,230,187,142,"images/shotgun.png",false,GUIEditor_Tab[1]) 
GUIEditor_Image[8] = guiCreateStaticImage(623,229,172,144,"images/sniper.png",false,GUIEditor_Tab[1]) 
GUIEditor_Button[6] = guiCreateButton(635,381,146,36,"300",false,GUIEditor_Tab[1]) 
GUIEditor_Button[7] = guiCreateButton(420,380,146,36,"100",false,GUIEditor_Tab[1]) 
GUIEditor_Button[8] = guiCreateButton(27,379,146,36,"50",false,GUIEditor_Tab[1]) 
GUIEditor_Button[9] = guiCreateButton(220,379,146,36,"110",false,GUIEditor_Tab[1]) 
GUIEditor_Tab[2] = guiCreateTab("Shop-2#",GUIEditor_TabPanel[1]) 
GUIEditor_Image[9] = guiCreateStaticImage(35,13,176,158,"images/spaz-12.png",false,GUIEditor_Tab[2]) 
GUIEditor_Image[10] = guiCreateStaticImage(312,11,193,160,"images/tec-9.png",false,GUIEditor_Tab[2]) 
GUIEditor_Image[11] = guiCreateStaticImage(614,6,204,169,"images/uzi.png",false,GUIEditor_Tab[2]) 
GUIEditor_Image[12] = guiCreateStaticImage(318,208,199,172,"images/grenade.png",false,GUIEditor_Tab[2]) 
GUIEditor_Button[10] = guiCreateButton(49,164,151,33,"300",false,GUIEditor_Tab[2]) 
GUIEditor_Button[11] = guiCreateButton(331,166,151,33,"120",false,GUIEditor_Tab[2]) 
GUIEditor_Button[12] = guiCreateButton(645,168,151,33,"105",false,GUIEditor_Tab[2]) 
GUIEditor_Button[13] = guiCreateButton(342,376,151,33,"1500",false,GUIEditor_Tab[2]) 
GUIEditor_Label[1] = guiCreateLabel(557,316,282,119,"7MoDy",false,GUIEditor_Tab[2]) 
guiSetFont(GUIEditor_Label[1],"sa-gothic") 
  
  
  
  
  
function BuyWeapon(money,id,ammo,name) 
    local m1 = getPlayerMoney(getLocalPlayer()) 
    if ( m1 >= money ) then 
        takePlayerMoney(money) 
        triggerServerEvent("onBuy",getLocalPlayer(),id,ammo) 
        outputChatBox("* You Are Bought " .. name .. "",0,255,0,true) 
    else 
        outputChatBox("* You Don't Have Enough Money",255,0,0,true) 
    end 
end 
  
addEventHandler("onClientGUIClick",getRootElement(), 
    function () 
        if ( source == GUIEditor_Button[1] ) then 
            BuyWeapon(1000,30,1000,"AK47") 
        elseif ( source == GUIEditor_Button[5] ) then 
            BuyWeapon(1500,31,1000,"M4") 
        elseif ( source == GUIEditor_Button[2] ) then 
            BuyWeapon(150,24,950,"Deagle") 
        elseif ( source == GUIEditor_Button[3] ) then 
            BuyWeapon(1500,16,20,"grenade") 
        elseif ( source == GUIEditor_Button[4] ) then 
            BuyWeapon(200,29,500,"mp5") 
  
        end 
    end 
) 
  
addEvent("onBuy",true) 
addEventHandler("onBuy",getRootElement(), 
    function (id,ammo) 
        giveWeapon(source,id,ammo) 
    end 
) 
  
local Marker = createMarker ( 1367.599609375, -1280, 12.300000190735, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler('onClientMarkerHit', Marker, 
    function ( hitPlayer ) 
        if ( hitPlayer == localPlayer ) then 
            guiSetVisible( GUIEditor_Window[1], true ) 
            showCursor( true ) 
        end 
    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...