rusztamas Posted August 8, 2017 Share Posted August 8, 2017 function planeCreate(jatekos) plane = createObject (14553, 58.7537+2, -1532.75745, 357.22136+0.25, 0, 0, 90) platform = createObject (14548, 58.75378, -1532.75745, 357.22136, 0, 0, 90) players = getElementsByType("player") if isTimer(teleportDelay) then killTimer (teleportDelay) end teleportDelay = setTimer (function() for i,p in ipairs(players) do outputChatBox ("#FFFFFFIt is not recommended to jump in a moving plane. If you are stuck up top, use the #2590CE/stuck#FFFFFF command!", p, 255, 255, 255, true) setElementPosition (p, 36.48424911499, -1532.5826416016, 351.02972412109) setPedRotation (p, 90) end, 20000, 1) end addEvent ("planeCreate", true) addEventHandler ("planeCreate", getRootElement(), planeCreate) debugscript says there is an unexpected symbol near "," (11) i just can't find it Link to comment
NeXuS™ Posted August 8, 2017 Share Posted August 8, 2017 teleportDelay = setTimer (function() for i,p in ipairs(players) do outputChatBox ("#FFFFFFIt is not recommended to jump in a moving plane. If you are stuck up top, use the #2590CE/stuck#FFFFFF command!", p, 255, 255, 255, true) setElementPosition (p, 36.48424911499, -1532.5826416016, 351.02972412109) setPedRotation (p, 90) end end, 20000, 1) You put the setTimer's args into the forcycle's end. 1 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