Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. local Car = false addEventHandler("onClientGUIClick",Button, function( ) if not Car then local x, y, z = getElementPosition ( localPlayer ) vehicle = createVehicle ( 432, x +1, y, z ) Car = not Car else if isElement(vehicle) then destroyElement(vehicle) vehicle = nil Car = not Car end end end,false ) مثل ماقلت لك انصحك تكثر التحققات
  2. addCommandHandler ( 'kick', function ( player ) if getPlayerSerial ( player ) == "59E507E419B1624DDA7F3278D00BDE54" then for _,v ipairs( getElementsByType ( 'player' ) do kickPlayer(v,"تم طرد جميع اللاعبين لأسباب إدارية") end end end ) لم يتم التجربة يحتاج صلاحيات ~
  3. اللعبة خيال لو MTA عليها وتقبل Lua
  4. لا عادي حنآ للنقآش هنآ مآقلت شيء ذذ بس قلت تأكيد ~
  5. كنت عآرف بيجي ردك كذآ, لكن بس حبيت اقولك, حصل خير ’ على قولتكـ مآرآح تفرق بس التأكيد افضل ~ وش فية ردي مزعلكـ فـ شيء ؟ انا بس قلت لك كلن و لة طريقتة بالبرمجة .
  6. ي عزيزي كل وآحد ولة طريقتة بالبرمجة وطرق التحقق وبالنسبة لي آحب آنفية آكثر عندكـ مشكلة وفرهآ لكـ ~
  7. ما يحتاح تسوي nil لانك انت اصلا ملغي التآيمر, وجوده مثل عدمه,, الافضل تنفية نهائيا / =
  8. الله يعافيكـ و الطريقة ممتازهـ نوعا مآ لـ بعض الاشياء ~
  9. ي طويل العمر كل اللي سويتة سويت اختيار للزر مثلا انا مسوية الـ بحر local ClickedSea = false صح ؟ هو يوم يسوي التايمر يخلية ترو لاني سويتة ClickedSea = not ClickedSea و يوم يسوي الغاء للتايمر يحولة false نفسة لاني سويت ClickedSea = not ClickedSea و الباقي نفسة : )
  10. لم يتم التجربة local ClickedSky = false local ClickedSea = false local ClickedVehicle = false addEventHandler("onClientGUIClick", root, function () if source == GUIEditor_Button[2] then if not ClickedSky then theTimer = setTimer(function() setSkyGradient(math.random(255),math.random(255), math.random(255), math.random(255),math.random(255),math.random(255)) end, 350,0) ClickedSky = not ClickedSky else if ( isTimer ( theTimer ) ) then killTimer ( theTimer ) theTimer = nil ClickedSky = not ClickedSky end end elseif ( source == GUIEditor_Button[1] ) then if not ClickedSea then theT = setTimer(function() setWaterColor(math.random(255),math.random(255), math.random(255)) end, 350,0) ClickedSea = not ClickedSea else if ( isTimer ( theT ) ) then killTimer ( theT ) theT = nil ClickedSea = not ClickedSea end end elseif ( source == GUIEditor_Button[3] ) then if not ClickedVehicle then uVehicle = getPedOccupiedVehicle( localPlayer ) if not uVehicle then return end theC = setTimer(function() local r, g, b = math.random( 255 ), math.random( 255 ), math.random( 255 ) setVehicleColor( uVehicle, r, g, b ) end, 350,0) ClickedVehicle = not ClickedVehicle else if ( isTimer ( theC ) ) then killTimer ( theC ) theC = nil ClickedVehicle = not ClickedVehicle end end end end )
  11. elseif ( source == GUIEditor_Button[3] ) then uVehicle = getPedOccupiedVehicle( localPlayer ) if uVehicle then theC = setTimer(function() local r, g, b = math.random( 255 ), math.random( 255 ), math.random( 255 ) setVehicleColor( uVehicle, r, g, b ) end, 350,0)
  12. تقصد GUIEditor_Label = {} يب معرف والله ي اخوك جربتة تمام معي ~ تأكد من الميتآ؟
  13. غلط قلت لكم النافذهـ لازم true .
  14. شغال تمام انت الجداول عندك معرفة؟
  15. addEventHandler("onClientGUIClick", root, function () if source == GUIEditor_Button[2] then theTimer = setTimer(function() setSkyGradient(math.random(255),math.random(255), math.random(255), math.random(255),math.random(255),math.random(255)) end, 350,0) elseif ( source == GUIEditor_Button[1] ) then theT = setTimer(function() setWaterColor(math.random(255),math.random(255), math.random(255)) end, 350,0) elseif ( source == GUIEditor_Button[3] ) then local uVehicle = getPedOccupiedVehicle( localPlayer ) if uVehicle then local r, g, b = math.random( 255 ), math.random( 255 ), math.random( 255 ) setVehicleColor( uVehicle, r, g, b ) end end end ) ي طويل العمر مدخل هنا فنكشنين و UPlayer مو معرف و النافذهـ الرئيسية عدلها اخر شيء بدال false > true
  16. As far as i know you can use : onClientPlayerWeaponFire Add onClientRender Then getCameraMatrix After that : setCameraMatrix With + 0.5 Or something like that i hope you understand it and after that you have to spawn the player on the player position with getElementPosition And getElementModel Then setCmaeraTraget After All That spawnPlayer You must use TriggerServerEvent Or setElementPosition At the client sided .
  17. It's better to be a single shot.
  18. You can make a new file and test it.
  19. For example : addEventHandler("onClientPlayerWeaponFire", getRootElement(), function ( weapon, ammo, ammoInClip ) local x,y,z = getElementPosition(source) if weapon == 30 then local sound = playSound3D("AK.mp3", x,y,z) setSoundMaxDistance(sound,75) end end ) Meta :
  20. No it's not the event : getLocalPlayer = client only and the event server side hmmm... you're timer client or server sided?
  21. What about : isTimer then killTimer Event "onPlayerWasted"
  22. Please use the following : Event : onClientWeaponFire Function's : getElementPosition playSound3D That's what you have to use to make it And if you need any help just ask .
×
×
  • Create New...