Jump to content

اضافة على كود


Recommended Posts

السلام عليكم

كيف حالكم انشاء الله بخير

المهم

بس ابي اخلي الوبجكت زي الاصنصيل لما يطلع يوقف 5 ثواني و ينزل يوقف 5 ثواني و يطلع و هيك زي يلي في سيرفرات الهجولة OMGانا سويت اوبتجكت على

هاد ييل سويتة

-- DDC OMG generated script, PLACE IT SERVER-SIDE 
  
function omg_CARRIERLIFTSFSE1() 
  CARRIERLIFTSFSE1 = createObject(3115, -3032.8999023438, 8112.1000976563, 95.5, 0, 0, 0) 
  omgMoveCARRIERLIFTSFSE1(1) 
end 
  
function omgMoveCARRIERLIFTSFSE1(point) 
  if point == 1 then 
    moveObject(CARRIERLIFTSFSE1, 5000, -3032.8994140625, 8112.099609375, 230, 0, 0, 0) 
    setTimer(omgMoveCARRIERLIFTSFSE1, 5000, 1, 2) 
  elseif point == 2 then 
    moveObject(CARRIERLIFTSFSE1, 5000, -3032.8999023438, 8112.1000976563, 95.5, 0, 0, 0) 
    setTimer(omgMoveCARRIERLIFTSFSE1, 5000, 1, 1) 
  end 
end 
  
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), omg_CARRIERLIFTSFSE1) 

Link to comment

انت حاط الأوبجيكت يتحرك من مكانه و يوصل المكان المطلوب بعد 5 ثواني

لاكن حاط بعد 5 ثواني تايمر عشان يرجع يتحرك مره ثانية

كذا ما راح يوقف مكانه

لازم تحط التايمر دبل الوقت وقت وصول الأوبجيكت

يعني غير وقت التايمر من 5000 إلى 10000

Link to comment

local marker = createMarker( .. ) 
veh = { } 
  
addEventHandler( "onMarkerHit", marker, 
function( player ) 
if getElementType ( player ) == "player" then 
if isElement( veh[ player ] ) then destroyElement( veh[ player ] ) end 
local x, y, z = getElementPosition( player ) 
veh[ player ] = createVehicle ( id, x, y, z ) 
warpPedIntoVehicle ( player, veh[ player ] ) 
end 
end 
) 
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...