Jump to content

Ayuda con script


JkR

Recommended Posts

Posted

Buenas, tengo un problema con unos marker que hize para una base, estan reservados por ACL solo para miembros, funcionan bien pero si intentas usarlos con un vehciulo no funcionan, espero que me puedan ayudar... gracias.

local tele = createMarker ( -473, -512.7001953125, 24.5, 'cylinder', 2, 0, 89, 97, 255 ) 
  
function Teleport( player, matchingDimension ) 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("TLAT")) then   
setElementPosition ( player, 3239.3999023438, 253.19999694824, 19) 
end 
end 
addEventHandler( "onMarkerHit", tele, Teleport ) 

Posted
local tele = createMarker ( -473, -512.7001953125, 24.5, 'cylinder', 2, 0, 89, 97, 255 ) 
  
function Teleport ( player, matchingDimension ) 
    if ( getElementType ( player ) == "player" ) then 
        if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "TLAT" ) ) then 
            setElementPosition ( player, 3239.3999023438, 253.19999694824, 19 ) 
        end 
    end 
end 
addEventHandler ( "onMarkerHit", tele, Teleport ) 

Proba eso.

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

Perdona pero el problema sigue, no se teletransporta con el auto, necesito una solución lo más rapido posible...

Posted
local tele = createMarker ( -473, -512.7001953125, 24.5, 'cylinder', 2, 0, 89, 97, 255 ) 
  
function Teleport ( player, matchingDimension ) 
cVeh = getPedOccupiedVehicle ( player ) 
    if ( getElementType ( player ) == "player" ) then 
        if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "TLAT" ) ) then 
            setElementPosition ( cVeh, 3239.3999023438, 253.19999694824, 19 ) 
        end 
    end 
end 
addEventHandler ( "onMarkerHit", tele, Teleport ) 

intenta asi

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted
Perdona pero el problema sigue, no se teletransporta con el auto, necesito una solución lo más rapido posible...

En tu código nunca incluyes el vehículo, es por eso que no se teletransporta, prueba con el código de @BorderLine aunque ese solo funciona si el jugador esta en un vehículo.

Developer @ MYVAL

Posted
local tele = createMarker ( -473, -512.7001953125, 24.5, 'cylinder', 2, 0, 89, 97, 255 ) 
  
function Teleport ( player, matchingDimension ) 
    if ( getElementType ( player ) == "player" ) then 
        if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "TLAT" ) ) then 
            local element = ( isPedInVehicle ( player ) and getPedOccupiedVehicle ( player ) or player ) 
            setElementPosition ( element, 3239.3999023438, 253.19999694824, 19 ) 
        end 
    end 
end 
addEventHandler ( "onMarkerHit", tele, 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.

  • Recently Browsing   0 members

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