Jump to content

طلب كود ماركر


3tibe511

Recommended Posts

طلب كود ماركر ينتقل بين العوالم الداخلية[interiors]

وسلامتكم

Server

  
function sett(player, x, y, z, id, die) 
    if getElementType(player) == "player" then 
        fadeCamera ( player, false, 1, 0, 0, 0 ) 
        setTimer ( fadeCamera, 1000, 1, player, true, 1 ) 
        setTimer ( setElementPosition, 1000, 1, player,  x, y, z) 
        setTimer ( setElementInterior, 1000, 1, player,  id)     
        setTimer ( setElementDimension, 1000, 1, player,  die)               
    end 
end 
  
local marker1 =  createMarker(1598.53906, -2490.17407, 263.42032, "cylinder", 1.5, 255, 0, 0, 255) 
setElementInterior(marker1,0) -----ينقل الماركر الى العالم الخارج 0 تقدر تغيره تحط اي عالم اخر 
  
addEventHandler ("onMarkerHit", getRootElement(), 
    function ( player ) 
        if (source == marker1) then ---اسم الماركر 
            sett(player, 246.47124, 83.76164, 1003.64063, 6, 0) --- ينقلك الى Interior 
            ----sett(player,  x, y, z, Interior, Dimension) -- شرح اللي فوق تحط الأحداثيات ورقم العالم 
        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...