maged Posted July 20, 2017 Share Posted July 20, 2017 السلام عليكم الموضوع باين من عنوانة اريد كود رسباون للمقر انا جربت اكواد كثير له ولاكن مو ظبط لو احد يعطيني كود مظبوط اكون شاكر افضالة وشكرا Link to comment
maged Posted July 20, 2017 Author Share Posted July 20, 2017 تم حل المشكلة شكرا علي سؤالك لاكن في مشكلة تانية بذا الكود خاص بمركر تصليح السيارات للمقرات ايضا local marker = createMarker (2229.6000976563,487.39999389648,20.8, "cylinder", 2, 255, 0, 0) addEventHandler ("onMarkerHit", marker, function (player) if getElementType (player) == "vehicle" then if getElementData (player, "Group") == "[MiCrO]" then local veh = getPedOccupiedVehicle (player) fixVehicle (veh) end end end ) Link to comment
AliAlanzi Posted July 21, 2017 Share Posted July 21, 2017 لمن تجي تكتب الكود في زر <> ادعسها و حدد Lua و اكتب كودك Link to comment
xX|KeMo|Xx Posted July 21, 2017 Share Posted July 21, 2017 local marker = createMarker (2229.6000976563,487.39999389648,20.8, "cylinder", 2, 255, 0, 0) addEventHandler ("onMarkerHit", marker, function (player) if getElementType (player) == "Player" then if getElementData (player, "Group") == "[MiCrO]" then local veh = getPedOccupiedVehicle (player) if veh then fixVehicle (veh) end end end end ) Link to comment
maged Posted July 21, 2017 Author Share Posted July 21, 2017 لم يعمل ايضا 11 hours ago, xX|KeMo|Xx said: local marker = createMarker (2229.6000976563,487.39999389648,20.8, "cylinder", 2, 255, 0, 0) addEventHandler ("onMarkerHit", marker, function (player) if getElementType (player) == "Player" then if getElementData (player, "Group") == "[MiCrO]" then local veh = getPedOccupiedVehicle (player) if veh then fixVehicle (veh) end end end end ) Link to comment
#\_oskar_/# Posted July 21, 2017 Share Posted July 21, 2017 marker = createMarker (2229.6000976563,487.39999389648,20.8, "cylinder", 2, 255, 0, 0) addEventHandler ("onMarkerHit", marker,function (player) if getElementType (player) == "vehicle" and getElementData (player, "Group") == "[MiCrO]" then fixVehicle (getPedOccupiedVehicle (player)) end end) Link to comment
Ismaeel_finer Posted July 21, 2017 Share Posted July 21, 2017 addEventHandler('onPlayerSpawn', root, function() if getElementData(source, "Group") == "[MiCrO]" then setTimer(setElementPosition, 500, 1, source,2229.6000976563,487.39999389648,20.8) setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) end end ) Link to comment
maged Posted July 21, 2017 Author Share Posted July 21, 2017 1 hour ago, #\_oskar_/# said: marker = createMarker (2229.6000976563,487.39999389648,20.8, "cylinder", 2, 255, 0, 0) addEventHandler ("onMarkerHit", marker,function (player) if getElementType (player) == "vehicle" and getElementData (player, "Group") == "[MiCrO]" then fixVehicle (getPedOccupiedVehicle (player)) end end) لم يعمل ايضا 27 minutes ago, Ismaeel_finer said: addEventHandler('onPlayerSpawn', root, function() if getElementData(source, "Group") == "[MiCrO]" then setTimer(setElementPosition, 500, 1, source,2229.6000976563,487.39999389648,20.8) setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) end end ) شكرا ولكن تم حل مشكلة الاسباون 1 Link to comment
AliAlanzi Posted July 21, 2017 Share Posted July 21, 2017 6 hours ago, maged said: addEventHandler('onPlayerSpawn', root, function() if getElementData(source, "Group") == "[MiCrO]" then setTimer(setElementPosition, 500, 1, source,2229.6000976563,487.39999389648,20.8) setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) end end ) ياطيب وين كود حق التيم الحين اذا كان هو شرطي يرسبن بالمقر و حرامي بالمقر اتوقع هو يبي تيم محدد يرسبن في مقر Link to comment
#BrosS Posted July 21, 2017 Share Posted July 21, 2017 7 minutes ago, Ghost-Gamer said: ياطيب وين كود حق التيم الحين اذا كان هو شرطي يرسبن بالمقر و حرامي بالمقر اتوقع هو يبي تيم محدد يرسبن في مقر ذا للعصابات والكود هو معطيه + اشوفه قال تم الافادة Link to comment
xX|KeMo|Xx Posted July 22, 2017 Share Posted July 22, 2017 12 hours ago, maged said: لم يعمل ايضا اخوي اعذرني كتبت حرف كابيتل وهوا يجب يكون سمول بالسطر الرابع بكلمه Player عدلتها تفضل local marker = createMarker (2229.6000976563,487.39999389648,20.8, "cylinder", 2, 255, 0, 0) addEventHandler ("onMarkerHit", marker, function (player) if getElementType (player) == "player" then if getElementData (player, "Group") == "[MiCrO]" then local veh = getPedOccupiedVehicle (player) if veh then fixVehicle (veh) end end end end ) 1 Link to comment
maged Posted July 22, 2017 Author Share Posted July 22, 2017 لم يعمل ايضا 10 hours ago, xX|KeMo|Xx said: اخوي اعذرني كتبت حرف كابيتل وهوا يجب يكون سمول بالسطر الرابع بكلمه Player عدلتها تفضل local marker = createMarker (2229.6000976563,487.39999389648,20.8, "cylinder", 2, 255, 0, 0) addEventHandler ("onMarkerHit", marker, function (player) if getElementType (player) == "player" then if getElementData (player, "Group") == "[MiCrO]" then local veh = getPedOccupiedVehicle (player) if veh then fixVehicle (veh) end end end end ) Link to comment
Ismaeel_finer Posted July 22, 2017 Share Posted July 22, 2017 39 minutes ago, maged said: لم يعمل ايضا مافهمت طلبك حدد وش بدك بضبط 15 hours ago, Ghost-Gamer said: ياطيب وين كود حق التيم الحين اذا كان هو شرطي يرسبن بالمقر و حرامي بالمقر اتوقع هو يبي تيم محدد يرسبن في مقر لان هوا حين طرح اكواده مارأيت كود تيم فقلت هادا بدو كود عصابة مو تيم شكرا علي سؤالك يا طيب Link to comment
xX|KeMo|Xx Posted July 22, 2017 Share Posted July 22, 2017 2 hours ago, maged said: لم يعمل ايضا يعمل عن تجربه تاكد انه عليك الالمنت داتا دا if getElementData (player, "Group") == "[MiCrO]" then Link to comment
Ismaeel_finer Posted July 22, 2017 Share Posted July 22, 2017 fixingMarkers = { createMarker(2229.6000976563,487.39999389648,20.8, "cylinder", 10,0,0,0,0), createMarker(2229.6000976563,487.39999389648,20.8, "cylinder", 7, 255, 255, 0) } getElementType(hitElement) == "vehicle" then for i,v in ipairs(fixingMarkers) do if v == source then local player = getVehicleOccupant(hitElement, 0) if player and getElementData(player, "Group") == "[MiCrO]" then setElementVelocity(hitElement, 0, 0, 0) fixVehicle(hitElement) exports.guimessages:outputServer(player, "[MiCrO]: Your vehicle has been fixed!", 0, 255, 0) end break end end end end ) Link to comment
AliAlanzi Posted July 22, 2017 Share Posted July 22, 2017 (edited) function onSpawnDD(x,y,z,rot,team) setTimer(function(source) if ( getElementData(source,"Group") == "Pro's" ) and ( getTeamN(source) == "No Team" ) and ( getElementData(source,"Stats") ~= 3 ) then rnx = math.random(-2,2) rny = math.random(-2,2) rsp = math.random(1,3) setElementPosition(source, 140.57130+rnx,1378.62305+rny,1088.36719) -- setElementInterior(source, 5) setElementDimension(source, 1826) setPedRotation(source, 0) setPedSkin(source, 30) setPedArmor(source, 100) setPedHealth (source, 200) setHealthAndArmor(source, 200) resetHealthArmy(source, 200) elseif getElementData( source, 'Group' ) == groupName and getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' then rnx = false rny = false rsp = false end end,50,1,source) end جرب ذا Edited July 22, 2017 by Ghost-Gamer Link to comment
#BrosS Posted July 22, 2017 Share Posted July 22, 2017 7 minutes ago, Ghost-Gamer said: function onSpawnDD(x,y,z,rot,team) setTimer(function(source) if ( getElementData(source,"Group") == "Pro's" ) and ( getTeamN(source) == "No Team" ) and ( getElementData(source,"Stats") ~= 3 ) then rnx = math.random(-2,2) rny = math.random(-2,2) rsp = math.random(1,3) setElementPosition(source, 140.57130+rnx,1378.62305+rny,1088.36719) -- setElementInterior(source, 5) setElementDimension(source, 1826) setPedRotation(source, 0) setPedSkin(source, 30) setPedArmor(source, 100) setPedHealth (source, 200) setHealthAndArmor(source, 200) resetHealthArmy(source, 200) elseif getElementData( source, 'Group' ) == groupName and getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' then rnx = false rny = false rsp = false end end,50,1,source) end جرب ذا خرابيط اعرف كيف تنسخ وتلصق Link to comment
AliAlanzi Posted July 22, 2017 Share Posted July 22, 2017 مو خرابيط هذا انا استخدمه ! ثاني شي شدخلك هذا خوي و انا الي معرفه على الموقع Link to comment
#BrosS Posted July 22, 2017 Share Posted July 22, 2017 2 minutes ago, Ghost-Gamer said: مو خرابيط هذا انا استخدمه ! ثاني شي شدخلك هذا خوي و انا الي معرفه على الموقع نص الوظائف غلط او غير معرفة .---. Link to comment
AliAlanzi Posted July 22, 2017 Share Posted July 22, 2017 اها يعني تشتغل معاي و مع غيري لا؟ Link to comment
#BrosS Posted July 22, 2017 Share Posted July 22, 2017 3 minutes ago, Ghost-Gamer said: اها يعني تشتغل معاي و مع غيري لا؟ اشتغل معك لانك المود اللي جايب منه الكود فيه الوظائف معرفة او انك تكذب الحين واصلا ليه جاي تعطي الكود هو قال تم الافادة والموضوع انتهى - اخر رد لي Link to comment
Ismaeel_finer Posted July 22, 2017 Share Posted July 22, 2017 1 hour ago, Ghost-Gamer said: function onSpawnDD(x,y,z,rot,team) setTimer(function(source) if ( getElementData(source,"Group") == "Pro's" ) and ( getTeamN(source) == "No Team" ) and ( getElementData(source,"Stats") ~= 3 ) then rnx = math.random(-2,2) rny = math.random(-2,2) rsp = math.random(1,3) setElementPosition(source, 140.57130+rnx,1378.62305+rny,1088.36719) -- setElementInterior(source, 5) setElementDimension(source, 1826) setPedRotation(source, 0) setPedSkin(source, 30) setPedArmor(source, 100) setPedHealth (source, 200) setHealthAndArmor(source, 200) resetHealthArmy(source, 200) elseif getElementData( source, 'Group' ) == groupName and getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' then rnx = false rny = false rsp = false end end,50,1,source) end جرب ذا addEventHandler('onPlayerSpawn', root, function() if getTeamName(getPlayerTeam(source)) == "No Team" and getElementData(source, "Group") == "Pro's" then setTimer(setElementPosition, 500, 1, source,x,y,z) setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) end end ) المفيد هوا قال تم افادة علي ريسباون وبدو ماركر اصلاح سيارة 2 hours ago, Ismaeel_finer said: fixingMarkers = { createMarker(2229.6000976563,487.39999389648,20.8, "cylinder", 10,0,0,0,0), createMarker(2229.6000976563,487.39999389648,20.8, "cylinder", 7, 255, 255, 0) } getElementType(hitElement) == "vehicle" then for i,v in ipairs(fixingMarkers) do if v == source then local player = getVehicleOccupant(hitElement, 0) if player and getElementData(player, "Group") == "[MiCrO]" then setElementVelocity(hitElement, 0, 0, 0) fixVehicle(hitElement) exports.guimessages:outputServer(player, "[MiCrO]: Your vehicle has been fixed!", 0, 255, 0) end break end end end end ) Link to comment
iMr.WiFi..! Posted July 22, 2017 Share Posted July 22, 2017 2 hours ago, Ismaeel_finer said: fixingMarkers = { createMarker(2229.6000976563,487.39999389648,20.8, "cylinder", 10,0,0,0,0), createMarker(2229.6000976563,487.39999389648,20.8, "cylinder", 7, 255, 255, 0) } getElementType(hitElement) == "vehicle" then for i,v in ipairs(fixingMarkers) do if v == source then local player = getVehicleOccupant(hitElement, 0) if player and getElementData(player, "Group") == "[MiCrO]" then setElementVelocity(hitElement, 0, 0, 0) fixVehicle(hitElement) exports.guimessages:outputServer(player, "[MiCrO]: Your vehicle has been fixed!", 0, 255, 0) end break end end end end ) كودك فيه اغلاط -_-" Link to comment
maged Posted July 22, 2017 Author Share Posted July 22, 2017 1 hour ago, Ghost-Gamer said: مو خرابيط هذا انا استخدمه ! ثاني شي شدخلك هذا خوي و انا الي معرفه على الموقع اية دة انت عراقي ازيك يمحترف بقولك هي مشكلة الرسباون حلتها بس تصليح سيارة للمقرات بس هي الي لسة 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