Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/12/17 in all areas

  1. You can replace original smoothMoveCamera implementation with this, and use stopSmoothMoveCamera() to break the movement at any time. I didn't test it, but it should work. local sm = {} sm.moov = 0 sm.object1,sm.object2 = nil,nil sm.timer1,sm.timer2,sm.timer3 = nil,nil,nil local function removeCamHandler() if(sm.moov == 1)then sm.moov = 0 end end local function camRender() if (sm.moov == 1) then local x1,y1,z1 = getElementPosition(sm.object1) local x2,y2,z2 = getElementPosition(sm.object2) setCameraMatrix(x1,y1,z1,x2,y2,z2) end end addEventHandler("onClientPreRender",root,camRender) function smoothMoveCamera(x1,y1,z1,x1t,y1t,z1t,x2,y2,z2,x2t,y2t,z2t,time) if(sm.moov == 1)then return false end sm.object1 = createObject(1337,x1,y1,z1) sm.object2 = createObject(1337,x1t,y1t,z1t) setElementAlpha(sm.object1,0) setElementAlpha(sm.object2,0) setObjectScale(sm.object1,0.01) setObjectScale(sm.object2,0.01) moveObject(sm.object1,time,x2,y2,z2,0,0,0,"InOutQuad") moveObject(sm.object2,time,x2t,y2t,z2t,0,0,0,"InOutQuad") sm.moov = 1 sm.timer1 = setTimer(removeCamHandler,time,1) sm.timer2 = setTimer(destroyElement,time,1,sm.object1) sm.timer3 = setTimer(destroyElement,time,1,sm.object2) return true end function stopSmoothMoveCamera() if isTimer( sm.timer1 ) then killTimer( sm.timer1 ) end if isTimer( sm.timer2 ) then killTimer( sm.timer2 ) end if isTimer( sm.timer3 ) then killTimer( sm.timer3 ) end if isElement( sm.object1 ) then destroyElement( sm.object1 ) end if isElement( sm.object2 ) then destroyElement( sm.object2 ) end removeCamHandler() end
    1 point
  2. تم عمل تحديث علي اللغة العربية , يمكنك إلقاء نظره علي الترجمة الجديدة وإعطائنا اقتراحات إذا كان هناك خطاء لرؤية الصور الجديدة للوحة الادمنية قم بالضغط علي الرابط الموجود في الاسفل !..لاتنسي الصلاة علي النبي
    1 point
  3. والله انك لك معزه عندي يشيخ
    1 point
  4. Many people said that the .rar file is damaged and it's good that they've not seen the code! Because now the code is getting even better!
    1 point
  5. onPlayerConnect + cancelEvent () is more appropriate and it will not kick the player from server.
    1 point
  6. do plane need to move or it can stand still?
    1 point
  7. I ave created new MTA RPG server called SAEG RPG. Currently we are looking for moderators. If you would like to be one PM me. On Server We Have: - Jobs - Services - Houses - Clothes Shop - Gun Shop - Pay'n'Spray Thanks to: JR10, Mabako and others Current Admins (0 left): [sAEG]Aaron Current Moderators(20 left):
    1 point
  8. .ياولد والله اني نااسي .بس اذكر انها كانت قصة اكشن وكفاح من اجل المستحيل, ثم سحبت عليها ثم رجعت وتعلمت اكثر والحين داخل ف مشروع سحبه قريباً .وما اذكر ان فيه احد علمني صح كنت اطلب مساعدات وكذا لكن كنت اتعلم منها يعني ماكان فيه شخص محدد يعلمني
    1 point
  9. مدري وش حكايتك انت و الماركر
    1 point
  10. It is all made by me, but nothing is unique.
    1 point
  11. Well, Cops can Arrest players, give them parking tickets, they can put a roadblock, accept, bribes. Traders buy stuff in Los Santos and sell them in Las Veturas travelling by ship. Mechanics fix cars by spraying them. Hitmen kill people what other players order them to. This script is creaded by JR10, but i made GUI. PS: There is also Casino in Los Santos.
    1 point
×
×
  • Create New...