Jump to content

==>ҭᾄlᾄl

Members
  • Posts

    299
  • Joined

  • Last visited

Everything posted by ==>ҭᾄlᾄl

  1. احصائيات راعئعة الى الامام بالتوفيق
  2. isObjectInACLGroup -- event="onPlayerChat" addEventHandler cancelEvent outputChatBox
  3. كفوكـ , بالنسبة لـ تشغيل الصوت اولاً : ركب ملف الموسيقى حقكـ بالمجلد حق الشوب ثم ضيفة الى ملف ميتا # ثم ضيف الكود ذآ الى كود الكلنت بعد سطر رقم 9 playSound("NameSound.mp3") -- إلى اسم ملف الصوت NameSound غير يصبح كود الكلنت كذآ -- Client Side ! function xOSAMAx() setElementData(getLocalPlayer(),"SuperGrenade",false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), xOSAMAx) function OSAMA() if source == اسم الزر then if getElementData(getLocalPlayer(),"SuperGrenade") == false then if getPlayerMoney(localPlayer) >= 5000 then -- حدد المبلغ الي تبيه playSound("NameSound.mp3") triggerServerEvent("OSAMA", getLocalPlayer()) setElementData(getLocalPlayer(),"SuperGrenade",true) function xOSAMA(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) id = {22,23,24,25,28,29,30,31,32,33,34,38} for i = 1, #id do if ( weapon == id[i] ) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) outputChatBox("* Super Grenade Ended !",255,0,0,true) setElementData(getLocalPlayer(),"SuperGrenade",false) end,100000,1) -- الوقت هنا 100 ثانية / تقدر تغيره من خلال رقم 100000 else outputChatBox("* You don't have $5000 to buy (Super Grenade) !",255,0,0,true) end else outputChatBox("* You already have (Super Grenade) !",255,10,0,true) end end end addEventHandler("onClientGUIClick", getRootElement (), OSAMA) هو يبي الصوت يشتغل للكل
  4. setTimer(restartResource,120000,0,cars)
  5. دام الوظيفه كلنت ومافيه ترايقر اتوقع بس اللاعب يشوفها
  6. اذا حفظت الملف تلقا الاكواد في المود في ملف output
  7. اظغط بزر الفارة اايمن عل الشاشة بعدين اظغط على output
  8. viewtopic.php?f=119&t=48230&p=477721&hilit=%D8%A7%D9%84%D8%B1%D8%B3%D9%88%D9%85%D9%8A%D9%87#p477721
  9. والله الكود استخدمتة فـ لوحة وكآن شغال معي @ المشكلة الثانية شوف رد عآشق في كود الكلنت حاط اسم الوظيفه داخل قوس وناقصك اند ======= خلاص تمت الافاده مشكورين عاشق وبرستيج يغلق
  10. @برستيج تسلم لاكن الكود في اخطا لكن عدلتها ===== في مشكلة في الكود server tCars = {} tCan = {} function onjoin () setElementData(tCan[source],"tCan",false) end addEventHandler("onPlayerJoin",root,onjoin) marcker1ofGive = createMarker ( 1807, 858, 11, "cylinder", 1.5, 255, 0, 0, 255 ) function MarkerHit(thePlayer, source) if getElementData(tCan[thePlayer],"tCan") ~= true then if not isPedInVehicle(thePlayer) then tCars[thePlayer] = createVehicle ( 411, 1825.5, 881.5, 10.4) warpPedIntoVehicle(thePlayer,tCars[thePlayer]) setElementData(tCan[thePlayer],"tCan",true) triggerClientEvent(thePlayer,"handeling",thePlayer) end end end addEventHandler( "onMarkerHit", marcker1ofGive, MarkerHit ) function onquit () if tCars[source] then if isElement(tCars[source]) then destroyElement(tCars[source]) end end setElementData(tCan[source],"tCan",false) end addEventHandler("onPlayerQuit",root,onquit) function destroyIt() setTimer(function(car) for k,v in ipairs ( tCars ) do if v == car then tCars[k] = nil setElementData(tCan[k],"tCan",false) end end destroyElement(car) end , 2000 , 1 ,source) end addEventHandler("onVehicleExplode",root,destroyIt) سطر 15 يقول في مشكلة في الارقمنت الاول حاولت اصلحها وما ظبط
  11. السلام عليكم عندي كود تاخذ سيارة اذا دخلت الماركر وجيت اظيف له كود يركب الوزنية وما ظبط ملاحظه / المود مركب مع مود الوزنيات الكود سيرفر tCars = {} tCan = {} function onjoin () setElementData(tCan[source],"tCan",false) end addEventHandler("onPlayerJoin",root,onjoin) marcker1ofGive = createMarker ( -4033.39746, -3061.74316, 379.18237, "cylinder", 1.5, 255, 0, 0, 255 ) function MarkerHit(thePlayer, source) if getElementData(tCan[thePlayer],"tCan") ~= true then if not isPedInVehicle(thePlayer) then tCars[thePlayer] = createVehicle ( 411, 1825.5, 881.5, 10.4) warpPedIntoVehicle(thePlayer,tCars[thePlayer]) setElementData(tCan[thePlayer],"tCan",true) triggerClientEvent(thePlayer,"handeling",thePlayer,tCars[thePlayer]) end end end addEventHandler( "onMarkerHit", marcker1ofGive, MarkerHit ) function onquit () if tCars[source] then if isElement(tCars[source]) then destroyElement(tCars[source]) end end setElementData(tCan[source],"tCan",false) end addEventHandler("onPlayerQuit",root,onquit) function destroyIt() setTimer(function(car) for k,v in ipairs ( tCars ) do if v == car then tCars[k] = nil setElementData(tCan[k],"tCan",false) end end destroyElement(car) end , 2000 , 1 ,source,controller) end addEventHandler("onVehicleExplode",root,destroyIt) كلنت addEvent("handeling",true) addEventHandler("handeling",root, function (car) importHandling(car,"1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0") end)
  12. سبحان الله يصور نفسسه بالجوال وصورة اجوال في الصورة
  13. اخر سطر عدل "s" الى "o"
  14. بدال HIT استخدم setElementData getElementData احسن لك
  15. vehicle = { } addEvent( 'car', true ) addEventHandler( 'car', getRootElement( ), function( ID ) if isElement( vehicle[ source ] ) then destroyElement( vehicle[ source ] ) end vehicle[ source ] = createVehicle( getVehicleModelFromName( ID ), getElementPosition( source ) ) end ) addEventHandler("onPlayerQuit",root, function () if isElement( vehicle[ source ] ) then destroyElement( vehicle[ source ] ) end end )
  16. addEvent("11", true) addEventHandler("11", getRootElement(), function() if isPedInVehicle(source) then local playerMoney = getPlayerMoney(source) if playerMoney >= 2000 then takePlayerMoney (source,2000) addVehicleUpgrade(getPedOccupiedVehicle(source), 1097) outputChatBox(" #0099ccSuccessfully bought Wheel #000000==|>[ #ff0000-$2000 #000000==|>]#00ff00 !",source,0,255,0,true) else outputChatBox("* You Don't Have Enough Money",source,255,0,0,true) end end end )
  17. https://wiki.multitheftauto.com/wiki/Scr ... Tutorial_1
×
×
  • Create New...