Jump to content

Teleport Script | MTA 1.0 Map Editor


novo

Recommended Posts

Hi,

For the portals of my map i use:

function hitTeleport() 
    outputChatBox("xDDD") 
end 
  
function hitTeleport2() 
    outputChatBox("xDDD") 
end 
  
addEventHandler("onClientResourceStart",gResRoot, 
    function() 
        local teleport2 = TELEPORT:create(6083.5703125,-1115.9501953125,167.88340759277,6555.8671875,-500.5478515625,29.6709327697751,5) 
        local teleport3 = TELEPORT:create(6097.2412109375,-257.0244140625,13.132873535156,5939.04296875,-85.3671875,12.1374187469481,5) 
        teleport2:setExitAngle(0) 
        teleport2:keepVelocityOnExit() 
        teleport2:addHandler(hitTeleport) 
        teleport3:setExitAngle(0) 
        teleport3:keepVelocityOnExit() 
        teleport3:addHandler(hitTeleport2) 
    end 
) 

but the markers (corona) aren't on the map when i'm testing :S

please help me configuring the script :D

PD: i'm not using only this script file, i use more...

thanks :P

Link to comment

I think you don't know how MTA scripting system works, right? there's no such function,

teleport2:setExitAngle(0)

teleport2:keepVelocityOnExit()

teleport2:addHandler(hitTeleport)

teleport3:setExitAngle(0)

teleport3:keepVelocityOnExit()

teleport3:addHandler(hitTeleport2)

I don't know where you got this from, but it's epicly incorrent o,o.

try learning some stuff from the wiki.

https://wiki.multitheftauto.com/wiki/Main_Page

Link to comment
Hi,

For the portals of my map i use:

function hitTeleport() 
    outputChatBox("xDDD") 
end 
  
function hitTeleport2() 
    outputChatBox("xDDD") 
end 
  
addEventHandler("onClientResourceStart",gResRoot, 
    function() 
        local teleport2 = TELEPORT:create(6083.5703125,-1115.9501953125,167.88340759277,6555.8671875,-500.5478515625,29.6709327697751,5) 
        local teleport3 = TELEPORT:create(6097.2412109375,-257.0244140625,13.132873535156,5939.04296875,-85.3671875,12.1374187469481,5) 
        teleport2:setExitAngle(0) 
        teleport2:keepVelocityOnExit() 
        teleport2:addHandler(hitTeleport) 
        teleport3:setExitAngle(0) 
        teleport3:keepVelocityOnExit() 
        teleport3:addHandler(hitTeleport2) 
    end 
) 

but the markers (corona) aren't on the map when i'm testing :S

please help me configuring the script :D

PD: i'm not using only this script file, i use more...

thanks :P

He is using TMA tools:

http://www.damian.org.uk/tmatools/index ... =teleports

Check this

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