Scommer Posted November 4, 2009 Share Posted November 4, 2009 (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 November 4, 2009 by Guest Link to comment
Gamesnert Posted November 4, 2009 Share Posted November 4, 2009 Could you please tell us what part of the lower script isn't working? Link to comment
Scommer Posted November 4, 2009 Author Share Posted November 4, 2009 When i hit the marker nothing happens but with first example everything is ok. Link to comment
Scommer Posted November 4, 2009 Author Share Posted November 4, 2009 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 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