Try Posted February 13, 2011 Posted February 13, 2011 (edited) I created one maker teleport but don't go the maker don't show in map this is the code ____________________________________________________________________________ fly = createMaker(1686,-2434,14,"cylinder",1.5,0,255,0). createBlipAttched(fly,41) function maker(player) if source == fly and getElementType(player) == "player" then setElementPosition(player,1688,-2425,14) end end addEventHandler("onMakerHit",getResourceRootElement(getThisResource()),maker) ____________________________________________________________________________ i mean its cuz this createBlipAttched(fly,41) this don't create the blip and i mean cuz this don't go Can you Help me? Edited February 13, 2011 by Guest
Aibo Posted February 13, 2011 Posted February 13, 2011 there is no createBlipAttched function, maybe you want createBlipAttachedTo there is no createMaker function, maybe you want createMarker
Castillo Posted February 13, 2011 Posted February 13, 2011 You can't put anything as function name, this has some errors. fly = createMaker(1686,-2434,14,"cylinder",1.5,0,255,0) createBlipAttachedTo(fly,41) function maker(player,matchingDimension) if source == fly and getElementType(player) == "player" then setElementPosition(player,1688,-2425,14) end end addEventHandler("onMakerHit",getRootElement(),maker) try that.
Try Posted February 13, 2011 Author Posted February 13, 2011 I tested what Solidsnake14 said but nothing i see in other server this code i posted and i changed createBlipAttched << this to this >> createBlipAttchedTo and nothing
Try Posted February 13, 2011 Author Posted February 13, 2011 THE MAKER GO BUT DON"T TELEPORT AND DON"T CREAT ONE BLIP IN THE HUD
Try Posted February 13, 2011 Author Posted February 13, 2011 fly = createMarker(1686,-2434,12.5,"cylinder",1.5,0,255,0). createBlipAttchedTo(fly,41) function marker(player) if source == fly and getElementType(player) == "player" then setElementPosition(player,0,0,3) end end addEventHandler("onMakerHit",getResourceRootElement(getThisResource()),maker)
12p Posted February 13, 2011 Posted February 13, 2011 (edited) 1. use code=lua tags! 2. only 1 fault, it's that your grammar sucks (sorry about that, but it's the true) fly = createMarker(1686,-2434,12.5,"cylinder",1.5,0,255,0). createBlipAttachedTo(fly,41) function marker(player) if source == fly and getElementType(player) == "player" then setElementPosition(player,0,0,3) end end addEventHandler("onMakerHit",getResourceRootElement(getThisResource()),marker) --it's MARKER, not maker Edited February 14, 2011 by Guest
Aibo Posted February 13, 2011 Posted February 13, 2011 well, you still haven't fixed the createBlipAttchedTo.
Try Posted February 14, 2011 Author Posted February 14, 2011 Nothing good i solve all but continue don't creating the blip and not teleporting fly = createMarker(1686,-2434,12.5,"cylinder",1.5,0,255,0). createBlipAttachedTo(fly,41) function marker(player) if source == fly and getElementType(player) == "player" then setElementPosition(player,0,0,3) end end addEventHandler("onMakerHit",getResourceRootElement(getThisResource()),maker)
12p Posted February 14, 2011 Posted February 14, 2011 (edited) What about this? fly = createMarker(1686,-2434,12.5,"cylinder",1.5,0,255,0). createBlipAttachedTo(fly,41) addEventHandler("onMakerHit",fly, function ( p ) if getElementType(p) == "player" then setElementPosition(p,0,0,3) end) end Edited February 15, 2011 by Guest
Try Posted February 14, 2011 Author Posted February 14, 2011 The Kid your code don't worked Only 2 question WHY DON"T GO and NEED ADD MORE FILES? I only putted the meta, script.lua and need one image??????
12p Posted February 15, 2011 Posted February 15, 2011 LOL I forgot something in that code ^^ fly = createMarker(1686,-2434,12.5,"cylinder",1.5,0,255,0). createBlipAttachedTo(fly,41) addEventHandler("onMakerHit",fly, function ( p ) if getElementType(p) == "player" then setElementPosition(p,0,0,3) end) end
MTA Team qaisjp Posted February 15, 2011 MTA Team Posted February 15, 2011 Instead of "attching" it you should create the blip instead, doesnt look like there is any need since It doesnt look like you want the "maker" to move.
Try Posted February 15, 2011 Author Posted February 15, 2011 The kid Again no! but wait i solving the problem i found one people go help me! please don't close this after i go edit this topic and put the correct code
12p Posted February 15, 2011 Posted February 15, 2011 Hey, don't use exclamations against me, I was trying to help you!
Try Posted February 15, 2011 Author Posted February 15, 2011 OK THE CODE NOW WORK AND ITS DONE Marker = createMarker (1686,-2434,12.6,"cylinder", 1.5, 0, 255, 0, getRootElement() ) function MarkerHit ( hitElement, dimension ) if source == Marker then if getElementType ( hitElement ) == "player" then setElementPosition ( hitElement, 1686,-2434,1000) end end end addEventHandler ( "onMarkerHit", getRootElement(), MarkerHit ) THIS WORK ;D Cya Later!
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