ABO.SR7777A Posted September 21, 2012 Share Posted September 21, 2012 السلام عليكم يا شباب انا اعرف اسوي دويره يجي الواحد يقعد فوها ويفتح الشوب تعلمت عليها وسويتها الحمدلله بس المشكله انا ابي اخلي ماركر واحد اانا عندي بالكو 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
TAPL Posted September 21, 2012 Share Posted September 21, 2012 ?????????????????????????????????????????????????????????????? زر دليت خربان عندك و إلا كيف؟ Link to comment
ABO.SR7777A Posted September 21, 2012 Author Share Posted September 21, 2012 ليش؟؟؟ظ فك الباند فاكترويا Link to comment
==>ҭᾄlᾄl Posted September 21, 2012 Share Posted September 21, 2012 انصحك تشيل مود جديد لانك ما تقدر تعدل كود بسيط سهل كل شي باين 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
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 جزاك الله خير موجديد باشيلها اذا فضيت ض1 Link to comment
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 شباب في مشكله جاتني بالكود Link to comment
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 انا اخت الكود هذا من مود ولما اروح للدويره يجيني النافذه حقتي وحقت المود الى اخت منه الماركر Link to comment
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 function showGUI2() guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end addEvent("showGUI2",true) addEventHandler("showGUI2", getRootElement(), showGUI2) Link to comment
./BlackBird# Posted September 22, 2012 Share Posted September 22, 2012 اطرح الكود الي خذيته من المود + اطرح مود السيرفر Link to comment
==>ҭᾄlᾄl Posted September 22, 2012 Share Posted September 22, 2012 شكلك المود الي ماخذ منه الكود مشغله ومشغل حقك واحداثيات الماركر نفس بعض Link to comment
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 كلينت 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
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 لالا انا مغير الاحداثيات مهي زي بعض Link to comment
./BlackBird# Posted September 22, 2012 Share Posted September 22, 2012 function showGUI () if GUIEditor_Window[1] then guiSetVisible (GUIEditor_Window[1],false) showCursor (false) else guiSetVisible (GUIEditor_Window[1],true) showCursor (true) end end addEvent ("showGUI",true) addEventHandler ("showGUI",getRootElement(),showGUI) Link to comment
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 نفس المشكله يفتح النافذه حقته بس حقتي ماتفتح Link to comment
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 لالا خلاص سويت كود ثاني جزاه الله خير الى كان برد Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now