novo Posted March 26, 2011 Share Posted March 26, 2011 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 please help me configuring the script PD: i'm not using only this script file, i use more... thanks Link to comment
H5N1 Posted March 26, 2011 Share Posted March 26, 2011 TELEPORT:createWOOOT?Create marker in map editor and then get this marker in lua code by getElementByID ("name"). Its easier. Link to comment
Castillo Posted March 27, 2011 Share Posted March 27, 2011 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
XFawkes Posted March 27, 2011 Share Posted March 27, 2011 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 please help me configuring the script PD: i'm not using only this script file, i use more... thanks He is using TMA tools: http://www.damian.org.uk/tmatools/index ... =teleports Check this Link to comment
Castillo Posted March 27, 2011 Share Posted March 27, 2011 What the... is that? Edit: Oh, i see, a library to make things easier for newbies Link to comment
XFawkes Posted March 27, 2011 Share Posted March 27, 2011 Or try this: (It is easier) 1. Download this file: SPEEDYSHARE RAPIDSHARE TMA Tools and Puma-Markers come from European Pro Gamers server Link to comment
Timic Posted March 28, 2011 Share Posted March 28, 2011 Can you send the uncompiled file in puma-markers? (Puma-Markers.lua.compiled) Link to comment
proracer Posted March 28, 2011 Share Posted March 28, 2011 Can you send the uncompiled file in puma-markers? (Puma-Markers.lua.compiled) Are you kidding me?! You can try to uncompile yourself if it's possible, otherwise there was a purpose that script is compiled. Link to comment
tma Posted March 28, 2011 Share Posted March 28, 2011 Hi. There are no markers for my teleports by default - you have to add them like so: teleport2:setMarker(5,255,0,0,255,"corona") This would create a red corona marker of size 5. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now