Jump to content

Ayuda


JesusAliso

Recommended Posts

local marker = createMarker( 1797.8017578125, -1578.6630859375, 14.088376045227, "arrow", 1.5, 0, 255, 0, 170 ) 
  
function MarkerHit( hitElement, matchingDimension ) 
    local elementType = getElementType( hitElement ) 
end 
addEventHandler( "onMarkerHit", marker, MarkerHit ) 
  
function consoleSetPlayerPosition ( source, marker, 1798.2607421875, -1570.1337890625, 22.934020996094 ) 
    setElementPosition ( source, 1797.8017578125, -1578.6630859375, 14.088376045227 ) 
end 
addCommandHandler ( "setpos", consoleSetPlayerPosition  ) 

intente poner mis coordenadas pero creo que hay que acomodarlo, eso es lo que nose arreglar y acomodar nose nada ._.

Link to comment
local marker = createMarker( 1797.8017578125, -1578.6630859375, 14.088376045227, "arrow", 1.5, 0, 255, 0, 170 ) 
  
function MarkerHit( hitElement, matchingDimension ) 
    addCommandHandler ( "setpos", consoleSetPlayerPosition  ) 
end 
addEventHandler( "onMarkerHit", marker, MarkerHit ) 
  
function consoleSetPlayerPosition ( source) 
    --No entendi del todo si quiere teleportar el jugador que pise o el marker pero te pongo para los dos  
--Jugador 
 setElementPosition ( source, 1797.8017578125, -1578.6630859375, 14.088376045227 ) 
--Marker 
 setElementPosition ( marker, 1797.8017578125, -1578.6630859375, 14.088376045227 ) 
end 

Link to comment
local marker = createMarker ( 1797.8017578125, -1578.6630859375, 14.088376045227, "arrow", 1.5, 0, 255, 0, 170 ) 
  
function MarkerHit ( hitElement, matchingDimension ) 
    if ( getElementType ( hitElement ) == "player" ) then 
        setElementPosition ( hitElement, 1797.8017578125, -1578.6630859375, 14.088376045227 ) 
    end 
end 
addEventHandler ( "onMarkerHit", marker, MarkerHit ) 

Link to comment

Exacto solid, pero me teletransporta a ese mismo lugar

lo que hago haora es cambiar las coordenadas a donde me quiero teletransportar ,esto: setElementPosition ( hitElement, 1797.8017578125, -1578.6630859375, 14.088376045227 ) solo las cambio.. gracias

Haora are todos los teleport muchas gracias.

Link to comment

Graciassssssss! Solid mira haora pude privatizar para que solo entren al team con un skin especificado gracias cadavez aprendo mas jeje mira, esto para el resource spawn de los clanes privados :)

local marker = createMarker ( 1797.8017578125, -1578.6630859375, 14.088376045227, "arrow", 1.5, 0, 255, 0, 170 ) 
  
function MarkerHit ( hitElement, matchingDimension ) 
    if getElementModel( hitElement, matchingDimension ) == 181 then 
    if ( getElementType ( hitElement ) == "player" ) then 
        setElementPosition ( hitElement, -1919.41015625, 652.76171875, 46.5625 ) 
    end 
end 
end 
addEventHandler ( "onMarkerHit", marker, MarkerHit ) 

Link to comment
local marker = createMarker ( 1797.8017578125, -1578.6630859375, 14.088376045227, "arrow", 1.5, 0, 255, 0, 170 ) 
  
function MarkerHit ( hitElement, matchingDimension ) 
    if getElementModel( hitElement ) == 181 then 
    if ( getElementType ( hitElement ) == "player" ) then 
        setElementPosition ( hitElement, -1919.41015625, 652.76171875, 46.5625 ) 
    end 
end 
end 
addEventHandler ( "onMarkerHit", marker, MarkerHit ) 

creo que es asi no como tu lo pusiste :D

Link to comment
  • Recently Browsing   0 members

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