-
Posts
589 -
Joined
-
Last visited
Everything posted by mjau
-
its working now and btw you can delete your own posts as far i know
-
yup mentioned you and solidsnake for helping me
-
oh almost forgot to say tnx it wokrs now
-
tnx but now it dont set me at the courrent position of the andromada it sets me at its creation point i need to make it so i gets set where the andro is right then when i go in the colshape
-
ehh k now i have one last problem before this is finished i want the player to be warped to the vehicle who created the marker when the player hit a ccolshape the colshape is there since when i enter it it says bad argument at setelementposition colshape = createColRectangle (313.0009765625, 1033.708984375, 100, 100) colshapeinterior = setElementInterior(colshape, 9) function createAndroMarker(thePlayer) x,y,z = getElementPosition( vehicle ) vehicle = getPedOccupiedVehicle(thePlayer) theMarker = createMarker ( x - 25, y + 5, z, "cylinder", 20.5, 0, 0, 255, 170 ) setTimer ( removeMarker, 4000, 1 ) addEventHandler( "onMarkerHit", theMarker, warpPlayerIntoAndro ) end addCommandHandler("marker", createAndroMarker) function warpPlayerIntoAndro(hitElement, dimensionMatch) outputDebugString("Warp function triggered") if getElementType(hitElement) ~= "player" then return end if isPedInVehicle(hitElement) then removePedFromVehicle(hitElement) end setElementInterior(hitElement, 9, 315.48, 984.13, 1959.11 ) end function removeMarker() destroyElement ( theMarker ) end function warpPlayerOut() setElementPosition(hitElement, x, y, z) end addEventHandler ( "onColShapeHit", colshape, warpPlayerOut )
-
but if u read the problem is that i dont want that vehicle with in the teleport
-
since this is goin to be release on community ill upload the whole code function createAndroMarker(thePlayer) vehicle = getPedOccupiedVehicle(thePlayer) x,y,z = getElementPosition( vehicle ) theMarker = createMarker ( x, y + 5, z - 2, "cylinder", 20.5, 0, 0, 255, 170 ) setTimer ( removeMarker, 7000, 1 ) addEventHandler( "onMarkerHit", theMarker, warpPlayerIntoAndro ) end addCommandHandler("marker", createAndroMarker) function warpPlayerIntoAndro(hitElement, dimensionMatch) outputDebugString("Warp function triggered") if getElementType(hitElement) ~= "player" then return end if isPedInVehicle(hitElement) then return end setElementInterior(hitElement, 9, 315.48, 984.13, 1959.11 ) end function removeMarker() destroyElement ( theMarker ) end
-
and anyway it dont warpme when im in a vehicle or on foot
-
the debugstring i added in the script it should out put warp function activated but it only does that when im in a vehicle
-
it dont even show the debugstring exept when im in a vehicle
-
ahh dammn new problem now it wont warp me into the interior when im out of a vehicle either
-
oh and this is something else but just a quesiton how can i make a colshape inside an interior
-
as he said you cant request it unless you wanna pay a scripter try giving us the piece of code you made and we will try to fix it
-
kk ehh now it says an error about bad ped pointer and instead of putting me in nowhere it puts me VERY high p in the air and drops me down
-
still warps me to nowhere when im in a vehicle and tirgger that function Edit with nowhere i mean everything disappears
-
hi i have a problem with my code it should not warp the player if he is in a vehicle but it does anyway heres my code function warpPlayerIntoAndro(hitElement, dimensionMatch) outputDebugString("Warp function triggered") if not dimensionMatch then return end if getElementType(hitElement) == "vehicle" then cancelEvent() else setElementInterior(hitElement, 9, 315.48, 984.13, 1959.11 ) end end
-
i didnt ask i will try myself but i need the functions to get nearest player in a car /plane exept me
-
Hi i will most likely ask very much in this topic over the time cuz im working wiht an EMP Project who can disable engine of a vehicle K over to the question i need an answer on before i can continue How can i make the script automaticly find the nearest player in the driver seat of a vehicle aircrafts also?
