Jump to content

كود الانتقال


nony

Recommended Posts

السلام عليكم ورحمه الله وبركاته

يا شباب ابي كود ينقلك من العالم الاصلي الى عالم وهمي

مثال

ابي ماركرين واحد ينقلك لمحل الاسلحه وواحد يرجعك

وابيه مثلا ينقلك لعالم الوهمي رقم 5 ويرجعك العالم الاصلي

وبس\ :mrgreen:

Link to comment
انت تقصد المحلات ؟
setElementInterior 

https://wiki.multitheftauto.com/wiki/Interior_IDs

يب يب محلات ذذ

function inte() 
    setElementInterior ( source, interior, 2233.91, 1714.73, 1011.38 ) ---هنا الاحداثيات الي في الويكي؟ 
  else 
    setElementInterior ( source, 0 ) ---ذا رقم 0 وش فايته؟  
 addEventHandler ("onMarkerHit", getRootElement(), inte ) 

https://wiki.multitheftauto.com/wiki/Interior_IDs

Link to comment

كذا ذذ؟

 ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) 
 setElementInterior ( player, 1, 289.7870, -35.7190,  1003.5160 ) 
 setElementInterior ( player, 0 )  
 addEventHandler ("onMarkerHit", getRootElement() ,ann ) 

Link to comment
ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) 
  
function onHit() 
    setElementInterior ( localPlayer, 1, 289.7870, -35.7190,  1003.5160 ) 
    setElementInterior ( localPlayer, 0 ) 
addEventHandler ("onClientMarkerHit", ann, onHit ) 

:?

Edited by Guest
Link to comment
كذا ذذ؟
 ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) 
 setElementInterior ( player, 1, 289.7870, -35.7190,  1003.5160 ) 
 setElementInterior ( player, 0 )  
 addEventHandler ("onMarkerHit", getRootElement() ,ann ) 

لا مهب كذا

ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) 
  
function onHit(player) 
    setElementInterior ( player, 1, 289.7870, -35.7190,  1003.5160 ) 
    setElementInterior ( player, 0 ) 
addEventHandler ("onClientMarkerHit", ann, onHit ) 

[-X

Link to comment

عندي سؤال

ليش مافي end

ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) 
  
function onHit() --- مافي اند لهاذي؟ 
    setElementInterior ( localPlayer, 1, 289.7870, -35.7190,  1003.5160 ) 
    setElementInterior ( localPlayer, 0 ) 
addEventHandler ("onClientMarkerHit", ann, onHit ) 
  
  
  

Link to comment

end تضآف اذا كآن في استثنآء

مثآل :

ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) 
function onHit()  
    if ann then 
        setElementInterior ( localPlayer, 1, 289.7870, -35.7190,  1003.5160 ) 
        setElementInterior ( localPlayer, 0 ) 
    end 
addEventHandler ("onClientMarkerHit", root, onHit ) 

Link to comment
ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) 
  
function onHit() 
    setElementInterior ( localPlayer, 1, 289.7870, -35.7190,  1003.5160 ) 
    setElementInterior ( localPlayer, 0 ) 
addEventHandler ("onClientMarkerHit", ann, onHit ) 

:?

عشان تسكر الفنكشنendنسيت ال

Link to comment
end تضآف اذا كآن في استثنآء

مثآل :

ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) 
function onHit()  
    if ann then 
        setElementInterior ( localPlayer, 1, 289.7870, -35.7190,  1003.5160 ) 
        setElementInterior ( localPlayer, 0 ) 
    end 
addEventHandler ("onClientMarkerHit", root, onHit ) 

ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) 
function onHit()  
    if ann then 
        setElementInterior ( localPlayer, 1, 289.7870, -35.7190,  1003.5160 ) 
        setElementInterior ( localPlayer, 0 ) 
    end 
    end 
addEventHandler ("onClientMarkerHit", root, onHit ) 

Link to comment
end تضآف اذا كآن في استثنآء

مثآل :

ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) 
function onHit()  
    if ann then 
        setElementInterior ( localPlayer, 1, 289.7870, -35.7190,  1003.5160 ) 
        setElementInterior ( localPlayer, 0 ) 
    end 
addEventHandler ("onClientMarkerHit", root, onHit ) 

function function_name ( args ) body end 

:?

Link to comment
  
  
local ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) 
function onHit(hitPlaye) 
    if ( hitPlayer == localPlayer ) then 
        if source == ann then 
            setElementInterior ( hitPlayer, 1, 289.7870, -35.7190,  1003.5160 ) 
            setTimer(setElementInterior, 1000, 1,hitPlayer, 0 ) 
        end 
    end 
end 
addEventHandler ("onClientMarkerHit", root, onHit 
  

Link to comment
  
  
local ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) 
function onHit(hitPlaye) 
    if ( hitPlayer == localPlayer ) then 
        if source == ann then 
            setElementInterior ( hitPlayer, 1, 289.7870, -35.7190,  1003.5160 ) 
            setTimer(setElementInterior, 1000, 1,hitPlayer, 0 ) 
        end 
    end 
end 
addEventHandler ("onClientMarkerHit", root, onHit ) -- هنآ 
  

نسيت قوس هههههههههه

Edited by Guest
Link to comment
  
  
local ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) 
function onHit(hitPlaye) 
    if ( hitPlayer == localPlayer ) then 
        if source == ann then 
            setElementInterior ( hitPlayer, 1, 289.7870, -35.7190,  1003.5160 ) 
            setTimer(setElementInterior, 1000, 1,hitPlayer, 0 ) 
        end 
    end 
end 
addEventHandler ("onClientMarkerHit", root, onHit) 
  

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