Jump to content

الماركر معد ينقل


aL.Kfo

Recommended Posts

مرحبا شباب

حصصلت معي مشكله الماركر معد ينقل لو اخش الماركر كاني م خششيت

مع انة اول كان تمام التمام بس فجاة معد ينقل

--******************* 
-- By Manster .. 
--******************* 
local Manstermarker = createMarker(2751.0087890625,-1826.0322265625,11.847807884216, "cylinder", 2, 255, 0, 0, 153) 
addEventHandler("onMarkerHit", Manstermarker, 
function (player) 
if ( isPedInVehicle(player) ) then return end 
  setElementInterior(player, 6) 
    setElementPosition(player, -1464.689453125,1558.4711914063,1052.53125) 
end) 
  
local Manstermarker2 = createMarker(-1464.6643066406,1556.5723876953,1052.53125, "cylinder", 2, 255, 0, 0, 153) 
setElementInterior(Manstermarker2, 6) 
addEventHandler("onMarkerHit", Manstermarker2, 
function (MarkerHit2) 
setElementInterior(MarkerHit2, 0) 
    setElementPosition(MarkerHit2, 2751.1240234375,-1827.4869384766,11.842135429382)  
end) 

Link to comment
-- Server Side # 
local MarkerOne = createMarker ( 2751.0087890625, -1826.0322265625, 11.847807884216, "cylinder", 2, 255, 0, 0, 255 ) 
local MarkerTwo = createMarker ( -1464.6643066406, 1556.5723876953, 1052.53125, "cylinder", 2, 255, 0, 0, 255 ) 
setElementInterior ( MarkerTwo, 6 ) 
  
addEventHandler ( "onMarkerHit", resourceRoot, 
    function ( plr ) 
        if ( getElementType ( plr ) ~= "player" ) or ( isPedInVehicle ( plr ) ) then 
            return 
        end 
        if ( source == MarkerOne ) then 
            setElementInterior ( plr, 6, -1464.689453125, 1558.5723876953, 1052.53125 ) 
        elseif ( source == MarkerTwo ) then 
            setElementInterior ( plr, 0, 2751.1240234375, -1828.0322265625, 11.842135429382 ) 
        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...