aL.Kfo

Members
  • Content Count

    756
  • Joined

  • Last visited

Everything posted by aL.Kfo

  1. تمام شغال زي العسسل ي عسل .. لا يختلف شغلككك .. يعطيكك العافيةةة .. #
  2. اممم ماصار ينقل لا متت
  3. عذرأ ع تكرار الرد لكن ابي فيه تايمر
  4. بططل كلاسيك .. شغال تمام .. #
  5. xClassiCx # مو شغـأل شباب احد بيدية الحلوة يطرح لنا كود شغال او رابط موضوع نفس طلبي
  6. يعطيككم العافيةة كل واحد بأسمة بس ولا كود شغال وجربت اسوي نفس مقال الاخ تابل بس مدري تعديلي صح ولا لن ماشتغل hospitalsTable = { { 1179.22803,-1323.52087,14.15908 }, { 1606.85559,1822.30957,10.82031 }, { -2659.85767,632.98505,14.45313 }, } function ( ) local i=0 local minDistance=100000 local minHospital = 0 local posX, posY, posZ = getElementPosition(source) for key,val in ipairs(hospitalsTable) do i=i+1 local distance = getDistanceBetweenPoints2D(posX, posY, val[1], val[2]) if (distance) then minDistance=distance minHospital=i end end spawnPlayer( source, hospitalsTable[minHospital][1], hospitalsTable [minHospital][2], hospitalsTable [minHospital][3], hospitalsTable [minHospital][4] ) end addEventHandler("onPlayerWasted", getRootElement(),spawn)
  7. كود شخص اجنبي .. الكود لا يقوم بنقلي عندمـأ اموت للمكان المحدد hospitalsTable = { { 1179.22803,-1323.52087,14.15908 }, { 1606.85559,1822.30957,10.82031 }, { -2659.85767,632.98505,14.45313 }, } function spawn( player ) local i=0 local minDistance=100000 local minHospital = 0 local posX, posY, posZ = getElementPosition(player) for key,val in ipairs(hospitalsTable) do i=i+1 local distance = getDistanceBetweenPoints2D(posX, posY, val[1], val[2]) if (distance) then minDistance=distance minHospital=i end end spawnPlayer( player, hospitalsTable[minHospital][1], hospitalsTable [minHospital][2], hospitalsTable [minHospital][3], hospitalsTable [minHospital][4] ) end addEventHandler("onPlayerWasted", getRootElement(),spawn) اتمنئ الافادةة
  8. اممم اتوقع لو يكون للكل .. الكل راح يخرب وتكون لخبطة هذا لو يضبط سيرفر اصلن
  9. وش فيكم ع الرجال !! ؟ ساعدوة بفنكشات ع الاقل او لا تردو لو ماتبي تساعد .. اذا الادرة مثلك زين انك منت من الادرة .. هو ماسوى شي .. مافي ادارة تحظر ع شخص يطلب او نزل موضوع نفس الطلب والواحد ماهو من يوم يتعلم كل شخص و تفكيرة وسرعة فهمه بالبرمجة .. ي تساعد يا الزم الصمت مفروض اللي يتفلسف هو ياخذ انذار
  10. السلام عليكم ورحمة الله من عندة مود المطعم
  11. يعطيكك العافيةة خيو .. ماقصرت
  12. نفسه لا نزلت سياره ثم نزلت السياره الاولى ماتختفي اللي نزلتها اول شي
  13. جربت سويت السيرفر --------------------------------------- --SCRIPT NAME: Vehicle Spawners --START OF DEVELOPMENT: Thursday, January 1st, 2015. 12:15PM GMT + 1 --END OF DEVELOPMENT: Thursday, January 1st, 2015. 22:03PM GMT + 1 --PURPOSE: Intended for Roleplay Servers --DEVELOPER: Danz2001 aka Danzy --COPYRIGHTED MEANING YOU CAN EDIT THIS SCRIPT TO YOUR LIKING AS LONG AS YOU KEEP THE CREDITS --------------------------------------- addEvent("spawnSelectedVehicle", true) function spawnSelectedVehicle (selectedVehicle, cost) x, y, z = getElementPosition(source) _, _, rz = getElementRotation(source) vehID = getVehicleModelFromName(selectedVehicle) getVehicleNameFromModel(selectedVehicle) vehicle = createVehicle(vehID, x, y, z) setElementRotation(vehicle, _, _, rz) takePlayerMoney(source, cost) warpPedIntoVehicle(source, vehicle) setVehicleColor(vehicle, 255, 255, 255) end addEventHandler("spawnSelectedVehicle", root, spawnSelectedVehicle) function destroySpawnedVehicle () if not isElement(vehicle) then return outputChatBox("Error: No spawned vehicle", source, 255, 0, 0) end speedx, speedy, speedz = getElementVelocity(vehicle) vehiclespeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) kph = vehiclespeed * 180 mph = vehiclespeed * 111.847 if mph > 6 then outputChatBox("You must move under 6 MPH (10 KPH), you are at "..math.floor(mph).." MPH ("..math.floor(kph).." KPH)", source, 255, 255, 0) return false end if isElement(vehicle) then destroyElement(vehicle) outputChatBox("Destroyed your spawned vehicle, thank you", source, 0, 255, 0) end end addCommandHandler("dsv", destroySpawnedVehicle) function getspeed (player) veh = getPedOccupiedVehicle(player) speedx, speedy, speedz = getElementVelocity(veh) vehiclespeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) kph = vehiclespeed * 180 mph = vehiclespeed * 111.847 outputChatBox("My Speed: "..math.floor(mph).." MPH ("..math.floor(kph).." KPH)", player, 0, 255, 0) end addCommandHandler("speed", getspeed) function velocity () setAircraftMaxVelocity(1.5) end addEventHandler("onResourceStart", resourceRoot, velocity) addEventHandler("onPlayerQuit",root,function() if vehicle then if isElement( vehicle ) then destroyElement(vehicle) end vehicle = nil end end)
  14. هذا هو معليش صححوة : ) --------------------------------------- --SCRIPT NAME: Vehicle Spawners --START OF DEVELOPMENT: Thursday, January 1st, 2015. 12:15PM GMT + 1 --END OF DEVELOPMENT: Thursday, January 1st, 2015. 22:03PM GMT + 1 --PURPOSE: Intended for Roleplay Servers --DEVELOPER: Danz2001 aka Danzy --COPYRIGHTED MEANING YOU CAN EDIT THIS SCRIPT TO YOUR LIKING AS LONG AS YOU KEEP THE CREDITS --------------------------------------- addEvent("spawnSelectedVehicle", true) function spawnSelectedVehicle (selectedVehicle, cost) x, y, z = getElementPosition(source) _, _, rz = getElementRotation(source) vehID = getVehicleModelFromName(selectedVehicle) getVehicleNameFromModel(selectedVehicle) vehicle = createVehicle(vehID, x, y, z) setElementRotation(vehicle, _, _, rz) takePlayerMoney(source, cost) warpPedIntoVehicle(source, vehicle) setVehicleColor(vehicle, 255, 255, 255) end addEventHandler("spawnSelectedVehicle", root, spawnSelectedVehicle) function destroySpawnedVehicle () if not isElement(vehicle) then return outputChatBox("Error: No spawned vehicle", source, 255, 0, 0) end speedx, speedy, speedz = getElementVelocity(vehicle) vehiclespeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) kph = vehiclespeed * 180 mph = vehiclespeed * 111.847 if mph > 6 then outputChatBox("You must move under 6 MPH (10 KPH), you are at "..math.floor(mph).." MPH ("..math.floor(kph).." KPH)", source, 255, 255, 0) return false end if isElement(vehicle) then destroyElement(vehicle) outputChatBox("Destroyed your spawned vehicle, thank you", source, 0, 255, 0) end end addCommandHandler("dsv", destroySpawnedVehicle) function getspeed (player) veh = getPedOccupiedVehicle(player) speedx, speedy, speedz = getElementVelocity(veh) vehiclespeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) kph = vehiclespeed * 180 mph = vehiclespeed * 111.847 outputChatBox("My Speed: "..math.floor(mph).." MPH ("..math.floor(kph).." KPH)", player, 0, 255, 0) end addCommandHandler("speed", getspeed) function velocity () setAircraftMaxVelocity(1.5) end addEventHandler("onPlayerQuit",root,function() if vehicle then if isElement( vehicle ) then destroyElement(vehicle) end vehicle = nil end end) addEventHandler("onResourceStart", resourceRoot, velocity) end)
  15. يعطيك العافية بس نفس الشي لا نزلت موتر الثاني مايختفي
  16. فية مشكلة ان نزلت موتر مايختفي الثاني ابية اذا نزل الموتر الاول يختفي الثاني .. شوف اخر 4 اسطر بالكود جربتها ماضبط ويعطيكم العافيةة .. --------------------------------------- --SCRIPT NAME: Vehicle Spawners --START OF DEVELOPMENT: Thursday, January 1st, 2015. 12:15PM GMT + 1 --END OF DEVELOPMENT: Thursday, January 1st, 2015. 22:03PM GMT + 1 --PURPOSE: Intended for Roleplay Servers --DEVELOPER: Danz2001 aka Danzy --COPYRIGHTED MEANING YOU CAN EDIT THIS SCRIPT TO YOUR LIKING AS LONG AS YOU KEEP THE CREDITS --------------------------------------- addEvent("spawnSelectedVehicle", true) function spawnSelectedVehicle (selectedVehicle, cost) x, y, z = getElementPosition(source) _, _, rz = getElementRotation(source) vehID = getVehicleModelFromName(selectedVehicle) getVehicleNameFromModel(selectedVehicle) vehicle = createVehicle(vehID, x, y, z) setElementRotation(vehicle, _, _, rz) takePlayerMoney(source, cost) warpPedIntoVehicle(source, vehicle) setVehicleColor(vehicle, 255, 255, 255) end addEventHandler("spawnSelectedVehicle", root, spawnSelectedVehicle) function destroySpawnedVehicle () if not isElement(vehicle) then return outputChatBox("Error: No spawned vehicle", source, 255, 0, 0) end speedx, speedy, speedz = getElementVelocity(vehicle) vehiclespeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) kph = vehiclespeed * 180 mph = vehiclespeed * 111.847 if mph > 6 then outputChatBox("You must move under 6 MPH (10 KPH), you are at "..math.floor(mph).." MPH ("..math.floor(kph).." KPH)", source, 255, 255, 0) return false end if isElement(vehicle) then destroyElement(vehicle) outputChatBox("Destroyed your spawned vehicle, thank you", source, 0, 255, 0) end end addCommandHandler("dsv", destroySpawnedVehicle) function getspeed (player) veh = getPedOccupiedVehicle(player) speedx, speedy, speedz = getElementVelocity(veh) vehiclespeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) kph = vehiclespeed * 180 mph = vehiclespeed * 111.847 outputChatBox("My Speed: "..math.floor(mph).." MPH ("..math.floor(kph).." KPH)", player, 0, 255, 0) end addCommandHandler("speed", getspeed) function velocity () setAircraftMaxVelocity(1.5) end addEventHandler("onResourceStart", resourceRoot, velocity) addEventHandler("onPlayerQuit",root,function() if vehicle then if isElement( vehicle ) then destroyElement(vehicle) end vehicle = nil end end)
  17. جمميل .. بانتظارك جديدكك
  18. العيديةة ..150 ريال .. بالعيد مرة تجي عيدية وعيدين ماتجي وعيد تجي ع حسب الاجواء ذذ الوالدة و الاهل الله يحفظهم يارب .. كنت مكشخ رايح الحق ع المفاطيح بيوم العيد
  19. ابدددددددددداع .. مود مفيد جدا
  20. مبدددددع ي اخ نصوور .. وننتظر الجديد من المودات .. لا تحرمنـأ ابداعكك
  21. كفو والله اخ نصور ابدعت وننتظر منك الجديد من المودات لسيرفرات الحياة الواقعيه
  22. هذي عجة حشيش ماهي دخان ههه واصصل
  23. المشكله عندي انا بعد لا فتحت البنك ماقدر اكتب ب بالايدت اصداري 1.5