Jump to content

Sigo pidiendo ayuda


leobi96

Recommended Posts

Posted

Disculpen mi Ignorancia pero queria saber como puedo crear una marca (( cilindro )) y que cuando entre en el cilindro me lleve a un interior de una casa o un centro de comidas

Posted

Como reparo esto me sale error cuando trato de inicarlo

local theMarker = createMarker (2290.21240, 2431.08228, 8.3, "cylinder", 1.5, 255, 0, 0, 170) 
 setElementInterior ( 3 , 238.66371, 139.28282, 1003.02344 ) 
  else 
    setElementInterior ( 0 ) 
  end 
end 

Posted

Prueba esto:

  
local theMarker = createMarker (2290.21240, 2431.08228, 8.3, "cylinder", 1.5, 255, 0, 0, 170) 
  
addEventHandler("onMarkerHit",root, 
function(hitPlayer) 
if theMarker then 
   setElementInterior ( theMarker, 3 , 238.66371, 139.28282, 1003.02344 ) 
else 
    setElementInterior ( theMarker, 0,2290.21240, 2431.08228, 8.3 ) 
    end 
end 
) 

430x73.png

430x73.png

Posted
local theMarker = createMarker (2290.21240, 2431.08228, 8.3, "cylinder", 1.5, 255, 0, 0, 170) 
  
  
function teleport (hitPlayer) 
if theMarker then 
   setElementInterior ( theMarker, 3 , 238.66371, 139.28282, 1003.02344 ) 
else 
    setElementInterior ( theMarker, 0,2290.21240, 2431.08228, 8.3 ) 
    end 
end 
addEventHandler( "onMarkerHit", theMarker , teleport ) 

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
Posted

ok esque mira

  
        "!!!_Sicario_!!!" name="lugares" version="7" type="script" description="Move" /> 
              

ese es el meta.xml y el .lua es este

    local theMarker = createMarker (2290.21240, 2431.08228, 8.3, "cylinder", 1.5, 255, 0, 0, 170) 
      
      
    function teleport (hitPlayer) 
    if theMarker then 
       setElementInterior ( theMarker, 3 , 238.66371, 139.28282, 1003.02344 ) 
    else 
        setElementInterior ( theMarker, 0,2290.21240, 2431.08228, 8.3 ) 
        end 
    end 
    addEventHandler( "onMarkerHit", theMarker , teleport ) 

Posted

estas seguro que tu archivo lua no se llama interiores.lua.lua porque hay gente que lo pone asi pensando el sistema operativo lo cambia por ti a ese tipo de archivo

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
Posted
local theMarker = createMarker ( 2290.21240, 2431.08228, 8.3, "cylinder", 1.5, 255, 0, 0, 170 ) 
  
function teleport ( hitPlayer ) 
    if ( getElementType ( hitPlayer ) == "player" ) then 
        setElementInterior ( hitPlayer, 3, 238.66371, 139.28282, 1003.02344 ) 
    end 
end 
addEventHandler ( "onMarkerHit", theMarker, teleport ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Si la creas en el mismo lugar donde es teleportado, entonces volvera al instante que aparezca en el lugar, porque estaria tocando el marcador para salir.

Podes hacer una de dos: crear el marcador de salida mas atras de donde lo teleportas, o podrias crear una tabla y hacer una restriccion para que no pase lo que mencione arriba.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Lo cambiaste de interior al marcador?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Asi:

local theMarker = createMarker ( 2290.21240, 2431.08228, 8.3, "cylinder", 1.5, 255, 0, 0, 170 ) 
setElementInterior ( theMarker, 3 ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...