Jump to content

ممكن كود الماركر للإنتقال من مكان الى آخر


Recommended Posts

local marker = createMarker(0, 0, 0, "checkpoint", 2, 255, 255, 0, 0) 
createBlipAttachedTo(marker, 15) 
function changeLocation() 
    for index, person in ipairs (getElementsByType("player")) do 
        setElementPosition(person, 132, -67, 1) 
    end 
end 
addEventHandler("onMarkerHit", marker, changeLocation) 

go to 'CJ' blip, walk to marker and you'll be setted on coordinate:

x: 132

y: -67

z: 1

Link to comment

الكود فيه خطأ

الكود ينقل كل اللاعبين -_-"

التصحيح

local marker = createMarker(0, 0, 0, "checkpoint", 2, 255, 255, 0, 0) 
createBlipAttachedTo(marker, 15) 
function changeLocation(person) 
        setElementPosition(person, 132, -67, 1) 
end 
addEventHandler("onMarkerHit", marker, changeLocation) 

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