Jump to content

yazan

Members
  • Posts

    1,452
  • Joined

  • Last visited

Everything posted by yazan

  1. getElementData مو setElementData
  2. القسم غلط تفضل تشتغل على زر 9 تقدر تغير الايفنت server # function off(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',400 ) ------- سرعتها القصوى setVehicleHandling ( vehicle,'engineAcceleration',35 )----- تسارع end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", off) end end)
  3. end للحين الكلنت الاول يبله شوف عندك if source == أسم الزر then if أل end تحتاج هنا addEventHandler("onClientGUIClick", root, -- الحدث function () -- الوظيفة if source == أسم الزر then -- عند الظغط على الزر local sound = playSound("Grand.mp3") -- تشغيل الصوت setSoundVolume(sound, 1.5) -- نضع قوة الصوت 1.508 end -- إنهاء التحقق end-- إنهاء الوظيفة ) -- قوس الحدث
  4. داري بس حبيت انبهه على هذه الموضوع
  5. server# function restartFunction( ) y = createMarker(x, y, z, "cylinder", 5, 0, 0, 205, 170) vehicle = createVehicle(560, 2228.9113769531, -1152.0667724609, 25.854433059692) end addEventHandler( "onMarkerHit", root, function(element) if source == marker then if getElementType(element) == "player" then local vehicle = getPedOccupiedVehicle (element) if vehicle then occupants = getVehicleOccupants(vehicle) for i,v in pairs(occupants) do givePlayerMoney ( v, 2000 ) destroyElement(y) destroyElement(vehicle) setTimer(restartFunction, 60000*2, 1) end end end end end)
  6. addEventHandler("onPlayerVehicleEnter", root, function(vehicle) if(isElement(vehicle_.car))then if (vehicle == vehicle_.car) then local x,y,z = unpack(marker[math.random(#marker)]) Markers.Marker = createMarker(x, y, z, "cylinder", 5, 0, 0, 205, 170) blip.blipCar2 = createBlipAttachedTo(Markers.Marker, 51) setElementVisibleTo(Markers.Marker, root, false) setElementVisibleTo(Markers.Marker, source, true) setTimer ( function() givePlayerMoney(source,2000) end, 2000, 0 ) end end end )
  7. نبي فلوس حقيقية $_$ امزح تنسيق رائع منن شخص اروع
  8. function o(player) local x,y,z = getElementPosition (player ) local accounta = getPlayerAccount (player) setAccountData ( accounta, "c1", x ) setAccountData ( accounta, "c2", y ) setAccountData ( accounta, "c3", z ) end function f(player) local accounta = getPlayerAccount ( player ) local b1 = (getAccountData ( accounta, "c1" ) or "N/A") local b2 = (getAccountData ( accounta, "c2" ) or "N/A") local b3 = (getAccountData ( accounta, "c3" ) or "N/A") setElementPosition ( player, b1, b2, b3) end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "6", "down", o) bindKey (v, "5", "down", f) end end)
  9. شوف ردي في هذه الموضوع viewtopic.php?f=160&t=86345&hilit=+txd
  10. ذي تعديل على txd
  11. مستحييييييييييييييل اقلك
  12. عندك غلط بالكلنت ناقص اند + ال ايفنت هذه onPlayerJoin يستخدم اذا دخل لاعب ثاني و انت موجود + تنعمل كلنت اصلن addEventHandler ("onClientResourceStart", resourceRoot, function () local sound = playSound("welcome.mp3") end )
  13. مستحيل تعمل سياره جديده بس يمكن انت شايف تبديل ملفات
  14. yazan

    طلب

    مجرد مثال ل كل شي و استخدامه لا حد يجي يقول هريسه و مدري وش هذه مثال على جدول فيه حسابات لاعبين + لفل local killdata = {} for i,account in pairs(getAccounts()) do rowdata = { account = account, points = getAccountData(account,"Exp") or "N/A", level = getAccountData(account,"Level") or "N/A", } end مثال على ترتيب القيم من الاصغر لاكبر table.sort (killdata) for k,v in ipairs(killdata) do outputChatBox(v) end
  15. قسم بالله كنت بعمل ذي الفكره قببل فتره و تعجزت مبدددددع و استمر يا بطل
  16. أطرح الشررح او الكود للافاده
  17. Just an example server function o(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then r1,r2,r3,r4 = getVehicleColor ( vehicle ) local accounta = getPlayerAccount ( player ) setAccountData ( accounta, "cl1", r1 ) setAccountData ( accounta, "cl2", r2 ) setAccountData ( accounta, "cl3", r3 ) setAccountData ( accounta, "cl4", r4 ) end end end function f(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then local accounta = getPlayerAccount ( player ) local b1 = (getAccountData ( accounta, "cl1" ) or "N/A") local b2 = (getAccountData ( accounta, "cl2" ) or "N/A") local b3 = (getAccountData ( accounta, "cl3" ) or "N/A") local b4 = (getAccountData ( accounta, "cl4" ) or "N/A") setVehicleColor( vehicle, b1, b2, b3, b4) end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", o) bindKey (v, "9", "up", f) end end)
  18. Markers = { [1] = { 1467.03149, -1088.79663, 23 }, [2] = { 1593, -2267.2, 12 }, [3] = { 2805.70703, -1109.63428, 29 } } post = { [1] = { 1435.64771, -1048.69482, 213.38281 }; --Temple [2] = { 1627.28125, -2286.68359, 94.13281 }; --LS Airport [3] = { 2833.78076, -1089.68665, 201.60696 } --LS Las Colinas } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarkerr = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 25, 205, 100, 150 ) local pBlip = createBlip ( TheMarkers[1], TheMarkers[2], TheMarkers[3], 0 ) end end ) addEventHandler ( "onClientMarkerHit", resourceRoot, function(element) if ( element == localPlayer ) then if ( element == localPlayer ) then for _, Thepost in ipairs ( post ) do setElementPosition ( element, Thepost[1], Thepost[2], Thepost[3] ) end end end)
  19. اعمل 500 لوب داخل 250 تايمر مفتوح ض1
×
×
  • Create New...