Jump to content

طلب كود


yazan

Recommended Posts

  
On = {} 
  
On.Button = guiCreateButton(558, 325, 243, 107, "", false) 
  
  
  
addEventHandler("onClientGUIClick",root, 
function () 
local vehicle = getPedOccupiedVehicle (localPlayer) 
if  vehicle then 
    if ( source == On.Button ) then 
  setVehicleEngineState ( vehicle, true ) 
             end 
      end 
end 
) 

Link to comment

يسير كذا ؟

  
GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(232,145,438,398,"لوحه تحكم بل سياره",false) 
GUIEditor_Image[1] = guiCreateStaticImage(3,2,416,364,"images/yazan.png",false,GUIEditor_Tab[1]) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(9,21,420,368,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(3,2,416,364,"images/mtalogo.png",false,GUIEditor_Tab[1]) 
GUIEditor_Button[1] = guiCreateButton(268,311,66,48,"تشغيل سياره",false,GUIEditor_Tab[1]) 
  
function open() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("F2","down",open) 
  
addEventHandler( "onClientGUIClick", root , 
    function () 
        if ( source == GUIEditor_Button[1] ) then 
           On = {} On.Button = guiCreateButton(558, 325, 243, 107, "", false) addEventHandler("onClientGUIClick",root, function () local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if ( source == On.Button ) then setVehicleEngineState ( vehicle, true ) end end end ) 
   end 
    end 

Link to comment
يسير كذا ؟
  
GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(232,145,438,398,"لوحه تحكم بل سياره",false) 
GUIEditor_Image[1] = guiCreateStaticImage(3,2,416,364,"images/yazan.png",false,GUIEditor_Tab[1]) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(9,21,420,368,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(3,2,416,364,"images/mtalogo.png",false,GUIEditor_Tab[1]) 
GUIEditor_Button[1] = guiCreateButton(268,311,66,48,"تشغيل سياره",false,GUIEditor_Tab[1]) 
  
function open() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("F2","down",open) 
  
addEventHandler( "onClientGUIClick", root , 
    function () 
        if ( source == GUIEditor_Button[1] ) then 
           On = {} On.Button = guiCreateButton(558, 325, 243, 107, "", false) addEventHandler("onClientGUIClick",root, function () local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if ( source == On.Button ) then setVehicleEngineState ( vehicle, true ) end end end ) 
   end 
    end 

 GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(232,145,438,398,"لوحه تحكم بل سياره",false) 
GUIEditor_Image[1] = guiCreateStaticImage(3,2,416,364,"images/yazan.png",false,GUIEditor_Tab[1]) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(9,21,420,368,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(3,2,416,364,"images/mtalogo.png",false,GUIEditor_Tab[1]) 
GUIEditor_Button[1] = guiCreateButton(268,311,66,48,"تشغيل سياره",false,GUIEditor_Tab[1]) 
  
function open() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("F2","down",open) 
  
addEventHandler( "onClientGUIClick", root , 
 function () 
    local vehicle = getPedOccupiedVehicle (localPlayer) 
      if vehicle then 
        if ( source == GUIEditor_Button[1] ) then 
  setVehicleEngineState ( vehicle, true )  
          end 
     end 
end 
) 

Link to comment

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

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Image = {} 
GUIEditor_Scrollpane = {} 
  
GUIEditor_Window[1] = guiCreateWindow(26,35,773,574,"لوحة يـز ـن",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Button[1] = guiCreateButton(99,155,197,55,"الورشة",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Button[2] = guiCreateButton(349,156,191,51,"مقر عصابة دارك",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
GUIEditor_Button[3] = guiCreateButton(572,156,161,51,"بيت يـز ـن",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[3],"default-bold-small") 
GUIEditor_Button[4] = guiCreateButton(221,356,361,45,"لتشغيل سياره او اطفاء",false,GUIEditor_Window[1]) 
GUIEditor_Scrollpane[1] = guiCreateScrollPane(304,128,0,0,false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(10,24,754,539,"images/mtalogo.png",false,GUIEditor_Window[1]) 
  
  
  

Link to comment
-- Cleint side ( Not tested !! ) 
  
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Image = {} 
GUIEditor_Scrollpane = {} 
  
GUIEditor_Window[1] = guiCreateWindow(26,35,773,574,"لوحة يـز ـن",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Button[1] = guiCreateButton(99,155,197,55,"الورشة",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Button[2] = guiCreateButton(349,156,191,51,"مقر عصابة دارك",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
GUIEditor_Button[3] = guiCreateButton(572,156,161,51,"بيت يـز ـن",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[3],"default-bold-small") 
GUIEditor_Button[4] = guiCreateButton(221,356,361,45,"لتشغيل سياره او اطفاء",false,GUIEditor_Window[1]) 
GUIEditor_Scrollpane[1] = guiCreateScrollPane(304,128,0,0,false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(10,24,754,539,"images/mtalogo.png",false,GUIEditor_Window[1]) 
  
  
addEventHandler( "onClintGUIClick", root, 
    function ( player ) 
        if ( source == GUIEditor_Button[1] ) then 
            setElementPosition ( source, X, Y, Z ) 
            setElementInterior ( source, int ) 
            setElementDimension ( source, Dim ) 
        elseif ( source == GUIEditor_Button[2] ) then 
            setElementPosition ( source, X, Y, Z ) 
            setElementInterior ( source, int ) 
            setElementDimension ( source, Dim ) 
        elseif ( source == GUIEditor_Button[3] ) then 
            setElementPosition ( source, X, Y, Z ) 
            setElementInterior ( source, int ) 
            setElementDimension ( source, Dim ) 
        elseif ( source == GUIEditor_Button[4] ) then 
            local vehicle = getPedOccupiedVehicle (localPlayer) 
            if vehicle then 
                local engine = getVehicleEngineState ( vehicle ) 
                setVehicleEngineState ( vehicle, not engine ) 
            end 
        end 
    end 
) 
  

int = Interior من لوحة الآدمن

Dim = Dimension من لوحة الآدمن

X = الإحداثي

Y = الإحداثي

Z = الإحداثي

*--> :) بدل بالإحداثيات و الأشاء الباقية, وإن شاء الله بيشتغل

Link to comment

مشكور بجرب و برد خبر بس بصححلك معلمه هذى ختصار لكود امر نقل

  elseif ( source == GUIEditor_Button[1] ) then 
            setElementPosition( localPlayer, -2074.8000488281, 1334.1999511719, 7.1999998092651 ) 

Link to comment

هذي لوحه لكن في غلط في امر الازرار مع علم 3 ازرار نقل و 1 تشغل و اطفاء محرك المتور

  
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Scrollpane = {} 
  
GUIEditor_Window[1] = guiCreateWindow(26,35,773,574,"لوحة يـز ـن",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Button[1] = guiCreateButton(99,155,197,55,"الورشة",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Button[2] = guiCreateButton(349,156,191,51,"مقر عصابة دارك",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
GUIEditor_Button[3] = guiCreateButton(572,156,161,51,"بيت يـز ـن",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[3],"default-bold-small") 
GUIEditor_Button[4] = guiCreateButton(221,356,361,45,"لتشغيل سياره او اطفاء",false,GUIEditor_Window[1]) 
GUIEditor_Scrollpane[1] = guiCreateScrollPane(304,128,0,0,false,GUIEditor_Window[1]) 
bindKey("F2","down",open) 
  
addEventHandler( "onClintGUIClick", root, 
    function ( player )if ( source == GUIEditor_Button[1] ) then 
            setElementPosition( localPlayer, x, y, z) 
          elseif ( source == GUIEditor_Button[2] ) then 
             setElementPosition( localPlayer, x, y, z) 
          elseif ( source == GUIEditor_Button[3] ) then 
             setElementPosition( localPlayer, x, y, z) 
        elseif ( source == GUIEditor_Button[4] ) then 
            local vehicle = getPedOccupiedVehicle (localPlayer) 
            if vehicle then 
                local engine = getVehicleEngineState ( vehicle ) 
                setVehicleEngineState ( vehicle, not engine ) 
            end 
        end 
    end 
) 
  

Link to comment
خبصت الموضوع -_-" دخلت اكواد على اكواد وضيعت طريق الموضوع كذا الناس ماتحب تساعدك -_-" :| !

انا كنت بدي موضع اغلق سياه و نقل قلت خلني ادمج مع بعض و كود اول شغال لكنه احط احدثيات ما ينقل و ما يطفي و يشغل محرك :?

Link to comment

-- Client Side ..! 
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Scrollpane = {} 
  
GUIEditor_Window[1] = guiCreateWindow(26,35,773,574,"لوحة يـز ـن",false) 
guiSetVisible(GUIEditor_Window[1],false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Button[1] = guiCreateButton(99,155,197,55,"الورشة",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Button[2] = guiCreateButton(349,156,191,51,"مقر عصابة دارك",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
GUIEditor_Button[3] = guiCreateButton(572,156,161,51,"بيت يـز ـن",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[3],"default-bold-small") 
GUIEditor_Button[4] = guiCreateButton(221,356,361,45,"لتشغيل سياره او اطفاء",false,GUIEditor_Window[1]) 
GUIEditor_Scrollpane[1] = guiCreateScrollPane(304,128,0,0,false,GUIEditor_Window[1]) 
  
function open() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end 
bindKey("F2","down",open) 
  
  
isOn = true 
  
addEventHandler( "onClientGUIClick", root, 
 function () 
         if ( source == GUIEditor_Button[1] ) then 
            setElementPosition( localPlayer, x, y, z) 
          elseif ( source == GUIEditor_Button[2] ) then 
             setElementPosition( localPlayer, x, y, z) 
          elseif ( source == GUIEditor_Button[3] ) then 
             setElementPosition( localPlayer, x, y, z) 
        elseif ( source == GUIEditor_Button[4] ) then 
            local vehicle = getPedOccupiedVehicle (localPlayer) 
            if vehicle then 
         if isOn then 
             isOn = false 
                setVehicleEngineState ( vehicle, false ) 
       else 
                           isOn = true 
                setVehicleEngineState ( vehicle, true ) 
                 end 
          end 
     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...