Jump to content

مشكلة بالماركر


ABO.SR7777A

Recommended Posts

السلام عليكم

يا شباب انا اعرف اسوي دويره يجي الواحد يقعد فوها ويفتح الشوب

تعلمت عليها وسويتها

الحمدلله

بس المشكله

انا ابي اخلي ماركر واحد

اانا عندي بالكو 6

كود srever

---------- 
    marker = createMarker( -2639.0168457031, 635.59753417969, 13, "cylinder", 2, 255, 255, 255, 255 ) 
    marker2 = createMarker( -1636.9022216797, 672.30364990234, 6, "cylinder", 2, 255, 255, 255, 255 ) 
    marker3 = createMarker( 1187.6276855469, -1308.4471435547, 12, "cylinder", 2, 255, 255, 255, 255 ) 
    marker4 = createMarker( 1537.5406494141, -1684.6533203125, 12, "cylinder", 2, 255, 255, 255, 255 ) 
    marker5 = createMarker( 212.30000305176, 1905.4000244141, 16.700000, "cylinder", 1, 255, 255, 255, 255 ) 
    marker6 = createMarker( 213.80000305176, 1905.4000244141, 16.70, "cylinder", 1, 255, 255, 255, 255 ) 
     
    local vehicles = {} 
      
    function spawnVeh(id) 
        local x, y, z = getElementPosition(source) 
        if isElement(vehicles[source]) then destroyElement(vehicles[source]) end 
        vehicles[source] = createVehicle(id, x + 1, y, z) 
    end 
    addEvent("CreVehice",true) 
    addEventHandler("CreVehice", root, spawnVeh) 
      
    addEventHandler("onPlayerQuit", root, 
    function() 
         if isElement(vehicles[source]) then 
              destroyElement(vehicles[source]) 
              vehicles[source] = nil 
         end 
    end) 
     
    function showGUI(hitPlayer) 
triggerClientEvent (hitPlayer,"showGUI2",getRootElement(),hitPlayer) 
end 
addEventHandler("onMarkerHit",marker,showGUI) 
  
    function showGUI(hitPlayer) 
triggerClientEvent (hitPlayer,"showGUI2",getRootElement(),hitPlayer) 
end 
addEventHandler("onMarkerHit",marker2,showGUI) 
  
    function showGUI(hitPlayer) 
triggerClientEvent (hitPlayer,"showGUI2",getRootElement(),hitPlayer) 
end 
addEventHandler("onMarkerHit",marker3,showGUI) 
  
    function showGUI(hitPlayer) 
triggerClientEvent (hitPlayer,"showGUI2",getRootElement(),hitPlayer) 
end 
addEventHandler("onMarkerHit",marker4,showGUI) 
  
    function showGUI(hitPlayer) 
triggerClientEvent (hitPlayer,"showGUI2",getRootElement(),hitPlayer) 
end 
addEventHandler("onMarkerHit",marker5,showGUI) 
  
    function showGUI(hitPlayer) 
triggerClientEvent (hitPlayer,"showGUI2",getRootElement(),hitPlayer) 
end 
addEventHandler("onMarkerHit",marker6,showGUI) 

انا ابيه ماركر واحد بس

وجزاكم الله خير

Link to comment

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

سهل كل شي باين

    marker = createMarker( -2639.0168457031, 635.59753417969, 13, "cylinder", 2, 255, 255, 255, 255 ) 
  
    local vehicles = {}      
    function spawnVeh(id) 
        local x, y, z = getElementPosition(source) 
        if isElement(vehicles[source]) then destroyElement(vehicles[source]) end 
        vehicles[source] = createVehicle(id, x + 1, y, z) 
    end 
    addEvent("CreVehice",true) 
    addEventHandler("CreVehice", root, spawnVeh) 
   
    addEventHandler("onPlayerQuit", root, 
    function() 
         if isElement(vehicles[source]) then 
              destroyElement(vehicles[source]) 
              vehicles[source] = nil 
         end 
    end) 
     
    function showGUI(hitPlayer) 
triggerClientEvent (hitPlayer,"showGUI2",getRootElement(),hitPlayer) 
end 
addEventHandler("onMarkerHit",marker,showGUI) 
  

Link to comment

كلينت

  
function showGUI () 
guiSetVisible (GUIEditor_Window[1],true) 
showCursor (true) 
end 
addEvent ("showGUI",true) 
addEventHandler ("showGUI",getRootElement(),showGUI) 

هاذا

سيرفر

marker1 = createMarker (295.239,-37.58,1000.515,"cylinder",1.5,0,0,225,100) 
marker2 = createMarker (295.48,-80.38,1000.51,"cylinder",1.5,0,0,225,100) 
marker3 = createMarker (290.28,-109.35,1000.51,"cylinder",1.5,0,0,225,100)  
  
pedammusf = createPed (179,290.187,-111.514,1001.51)  
setElementInterior(pedammusf,6)  
setPedFrozen(pedammusf,true)  
  
pedammulv = createPed (179,295.47,-82.53,1001.51)   
setElementInterior (pedammulv,4) 
  
setElementInterior (marker2,4) 
setElementInterior (marker1,1) 
setElementInterior (marker3,6) 
  
function showGUI (jugador) 
if (source == marker1) then 
triggerClientEvent (jugador,"showGUI",getRootElement(),jugador) 
elseif (source == marker2) then 
triggerClientEvent (jugador,"showGUI",getRootElement(),jugador) 
elseif (source == marker3) then 
triggerClientEvent (jugador,"showGUI",getRootElement(),jugador) 
end 
end 
addEventHandler ("onMarkerHit",getRootElement(),showGUI) 

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...