Professional Posted April 10, 2014 Share Posted April 10, 2014 السلام عليكم ورحمه تلله وبركاته شباب ابي كود تصليح سيارات مثل لي بمقر هدان تروح يتصلح سيارتك ابيه جاهز لاني جربت احطه بل ملف ليو ما اقدر ما اعرف انجليزي كويس عا اتعلم اعطوني ياه جاهز وتكونو مشكورين.. Link to comment
The Killer Posted April 10, 2014 Share Posted April 10, 2014 local marker = createMarker (x, y, z, "cylinder", 2, 255, 0, 0) addEventHandler ("onMarkerHit", marker, function (player) if getElementType (player) == "vehicle" then if getElementData (player, "gang") == "Group Name" then local veh = getPedOccupiedVehicle (player) fixVehicle (veh) end end end ) استبدل Group Name بإسم القروب حقك Link to comment
Professional Posted April 10, 2014 Author Share Posted April 10, 2014 شكرا لك اخي الكريم Link to comment
Bssol Posted April 10, 2014 Share Posted April 10, 2014 (edited) local marker = createMarker (x, y, z, "cylinder", 2, 255, 0, 0) addEventHandler ("onMarkerHit", marker, function (player) if getElementType (player) == "vehicle" then -- يوجد خطأ هنا، لازم تشيك انه لاعب مو سيارة!1 if getElementData (player, "gang") == "Group Name" then local veh = getPedOccupiedVehicle (player) -- احتمال ما يكون راكب سيارة fixVehicle (veh) end end end ) استبدل Group Name بإسم القروب حقك التصحيح local marker = createMarker (x, y, z, "cylinder", 2, 255, 0, 0) function onHitGangMarker(player) if getElementType (player) == "player" then if getElementData (player, "gang") == "Group Name" then local veh = getPedOccupiedVehicle (player) if ( veh ) then fixVehicle (veh) end end end end addEventHandler ("onMarkerHit", marker,onHitGangMarker ) Edited April 10, 2014 by Guest Link to comment
Professional Posted April 10, 2014 Author Share Posted April 10, 2014 اقول ليش ما يشتغل ض1 شكرا لك Link to comment
al-Kobra Posted April 10, 2014 Share Posted April 10, 2014 local marker = createMarker (x, y, z, "cylinder", 2, 255, 0, 0) addEventHandler ("onMarkerHit", marker, function (player) if getElementType (player) == "vehicle" then -- يوجد خطأ هنا، لازم تشيك انه لاعب مو سيارة!1 if getElementData (player, "gang") == "Group Name" then local veh = getPedOccupiedVehicle (player) -- احتمال ما يكون راكب سيارة fixVehicle (veh) end end end ) استبدل Group Name بإسم القروب حقك التصحيح local marker = createMarker (x, y, z, "cylinder", 2, 255, 0, 0) function onHitGangMarker(player) if getElementType (player) == "player" then if getElementData (player, "gang") == "Group Name" then local veh = getPedOccupiedVehicle (player) if ( veh ) fixVehicle (veh) end end end end addEventHandler ("onMarkerHit", marker,onHitGangMarker ) ناقص عندك then في السطر 7 Link to comment
Bssol Posted April 10, 2014 Share Posted April 10, 2014 تسلم على التنبيه، تم تصحيحه... 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