Jump to content

Nothing


Scommer

Recommended Posts

Posted (edited)

I have a probelm i copy the script from my olders gamemodes,but now i want to change coordinates and marker doesn't working.Look and say where you see the differences.

Working Fine

local teleport = createMarker ( 2232.8212890625, -1159.7487792969, 24.890640258789, "cylinder", 1.5, 0, 255, 0, 175 )
function MarkerHit ( hitPlayer, matchingDimensio )
if getElementType(hitPlayer)=="player" and source == teleport then
setElementInterior( hitPlayer, 15, 2217.6250 , -1150.6580, 1025.7970 )
setElementPosition(hitPlayer,2216,-1150,1026)
setPedRotation(hitPlayer,90)
end
end
addEventHandler("onMarkerHit", getRootElement (), MarkerHit)

Doesn't Working

local teleport = createMarker ( 1554.7901611328, -1675.5651855469, 15.116052627563, "cylinder", 1, 0, 0, 255, 255 )
function MarkerHit ( hitPlayer, matchingDimensio )
if getElementType(hitPlayer)=="player" and source == teleport then
setElementInterior( hitPlayer, 6, 247 , 62, 1002 )
setElementPosition(hitPlayer,247,62,1002)
setPedRotation(hitPlayer,90)
end
end
addEventHandler("onMarkerHit", getRootElement (), MarkerHit)

Can you say where you see the differences between these functions exept coordinates.

Edited by Guest
Posted

I found a bug or something when cylinder size is 1.0 i didn't test with 0.x but i think it's only with 1.0.So when cylinder size is 1.0 function deosn't working :D

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