Jump to content

فنكشات اريد


Recommended Posts

اريد فنكشات

انشاء ماركر وعندما المس ماركر

يدخلني مكان لكن اريد عندما المس ماركر تصبح شاشه خضراء لمده 3 ثواني وبعدها انتقل الى مكان الي اريده

اتمنى فهتم :wink:

Link to post
marker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, ) 
  
addEventHandler ("onClientMarkerHit", resourceRoot, function ( hitPlayer ) 
if hitPlayer == localPlayer then 
fadeCamera ( false, time to fade, 0, 255, 0 ) 
setElementPosition ( hitPlayer, x, y, z ) 
end 
end ) 

Link to post
    marker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, ) 
      
    addEventHandler ("onClientMarkerHit", marker, function ( hitPlayer ) 
    if hitPlayer == localPlayer then 
    fadeCamera ( false, 3, 0, 255, 0 ) -- 3 second 
    setElementPosition ( hitPlayer, x, y, z ) 
    end 
    end ) 

Link to post

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...