Jump to content

تصحيح كود


Recommended Posts

شباب اريد عندما اللاعب يدخل المركر لاظهر له شئ الا ان كان الاسكن الخاص به 133

car1 = createMarker ( -1717.96106, -124.25090, 2.5, "cylinder", 1.5, 255, 255, 0, 170 ) 
if ( Model == 133 ) then 
addEventHandler ( "onClientMarkerHit", car1, 
function () 
  
GUIEditor = { 
    memo = {}, 
    button = {}, 
    window = {}, 
} 
GUIEditor.window[1] = guiCreateWindow(0, .2, 0.33, 0.57, "", true) 
guiWindowSetSizable(GUIEditor.window[1], false) 
  
GUIEditor.memo[1] = guiCreateMemo(9, 20, 283, 407, "", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true) 
GUIEditor.button[1] = guiCreateButton(297, 23, 147, 34, "سائق 1", false, GUIEditor.window[1]) 
GUIEditor.button[3] = guiCreateButton(297, 61, 147, 34, "سائق 2", false, GUIEditor.window[1]) 
GUIEditor.button[6] = guiCreateButton(297, 100, 147, 34, "سائق 3", false, GUIEditor.window[1]) 
GUIEditor.button[8] = guiCreateButton(408, 391, 37, 36, "X", false, GUIEditor.window[1]) 
  
  
showCursor ( true ) 
end 
) 
end 

Link to comment

جـرب الـكود * .

GUIEditor = { 
    memo = {}, 
    button = {}, 
    window = {}, 
} 
  
GUIEditor.window[1] = guiCreateWindow(0, .2, 0.33, 0.57, "", true) 
guiSetVisible( GUIEditor.window[1], false ) 
guiWindowSetSizable(GUIEditor.window[1], false) 
GUIEditor.memo[1] = guiCreateMemo(9, 20, 283, 407, "", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true) 
GUIEditor.button[1] = guiCreateButton(297, 23, 147, 34, "سائق 1", false, GUIEditor.window[1]) 
GUIEditor.button[3] = guiCreateButton(297, 61, 147, 34, "سائق 2", false, GUIEditor.window[1]) 
GUIEditor.button[6] = guiCreateButton(297, 100, 147, 34, "سائق 3", false, GUIEditor.window[1]) 
GUIEditor.button[8] = guiCreateButton(408, 391, 37, 36, "X", false, GUIEditor.window[1]) 
  
marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 160 ) 
  
addEventHandler("onClientMarkerHit",root, 
function ( hitPlayer ) 
  if ( hitPlayer == localPlayer ) then 
   if ( source == marker ) then 
      if ( getElementModel ( localPlayer ) == 133 ) then 
        guiSetVisible( GUIEditor.window[1], true ) 
     showCursor(true) 
    end 
  end 
 end 
end 
) 
Link to comment
جـرب الـكود * .

GUIEditor = { 
    memo = {}, 
    button = {}, 
    window = {}, 
} 
  
GUIEditor.window[1] = guiCreateWindow(0, .2, 0.33, 0.57, "", true) 
guiSetVisible( GUIEditor.window[1], false ) 
guiWindowSetSizable(GUIEditor.window[1], false) 
GUIEditor.memo[1] = guiCreateMemo(9, 20, 283, 407, "", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true) 
GUIEditor.button[1] = guiCreateButton(297, 23, 147, 34, "سائق 1", false, GUIEditor.window[1]) 
GUIEditor.button[3] = guiCreateButton(297, 61, 147, 34, "سائق 2", false, GUIEditor.window[1]) 
GUIEditor.button[6] = guiCreateButton(297, 100, 147, 34, "سائق 3", false, GUIEditor.window[1]) 
GUIEditor.button[8] = guiCreateButton(408, 391, 37, 36, "X", false, GUIEditor.window[1]) 
  
marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 160 ) 
  
addEventHandler("onClientMarkerHit",root, 
function ( hitPlayer ) 
  if ( hitPlayer == localPlayer ) then 
   if ( source == marker ) then 
      if ( getElementModel ( localPlayer ) == 133 ) then 
        guiSetVisible( GUIEditor.window[1], true ) 
     showCursor(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...