Hussain Posted April 12, 2012 Share Posted April 12, 2012 السسلام عليكم ورحمة الله وبركاته اخوااني ممكن كود الماركر للإنتقال من مكان الى آخر ؟؟ الله يعطيكم العافية Link to comment
Sparrow Posted April 12, 2012 Share Posted April 12, 2012 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
Hussain Posted April 12, 2012 Author Share Posted April 12, 2012 ممكن توريني مثآل ؟؟ وريني الاحداثيات عشان اعرف وين مكانها Link to comment
Sparrow Posted April 12, 2012 Share Posted April 12, 2012 the marker coordinate is: x: 0 y: 0 z: 0 you'll location will be changed to: x: 132 y: -67 z: 1 when you walk to marker Link to comment
Hussain Posted April 12, 2012 Author Share Posted April 12, 2012 كفووؤوؤوؤ والله مشششكور ضبط وياي وسويت اكثر من وحده جزآك الله خير اخوي Sparrow ممكن ايميلك ؟ Link to comment
TAPL Posted April 13, 2012 Share Posted April 13, 2012 الكود فيه خطأ الكود ينقل كل اللاعبين -_-" التصحيح 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
Sparrow Posted April 13, 2012 Share Posted April 13, 2012 oh yes, sorry @tapl, thanks for fixing Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now