Jump to content

Ayuda con este script!


Flipi

Recommended Posts

Hola ,coma ebe aba bele ............

English please

Hi, I need to know how to make a teleport where you can teleport with or without vehicle with a default command such as "/ name of the place", hopefully I can help (sorry bad english)

Link to comment
function Teleport(thePlayer) 
    if getPedOccupiedVehicle(thePlayer) then 
        setElementPosition ( thePlayer, X, Y, Z ) 
        setElementFrozen(thePlayer, true) 
        setPedGravity(thePlayer, 0) 
        setElementDimension(thePlayer, 0) 
        setElementInterior(thePlayer, 0) 
    end 
end 
addCommandHandler("placename", Teleport) 

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