Jump to content

mjau

Members
  • Posts

    589
  • Joined

  • Last visited

Everything posted by mjau

  1. mjau

    how ?

    old topic and this has been fixed
  2. mjau

    if check dont work

    its working now and btw you can delete your own posts as far i know
  3. mjau

    if check dont work

    yup mentioned you and solidsnake for helping me
  4. mjau

    if check dont work

    oh almost forgot to say tnx it wokrs now
  5. mjau

    if check dont work

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

    if check dont work

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

    if check dont work

    but if u read the problem is that i dont want that vehicle with in the teleport
  8. mjau

    if check dont work

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

    if check dont work

    and anyway it dont warpme when im in a vehicle or on foot
  10. mjau

    if check dont work

    the debugstring i added in the script it should out put warp function activated but it only does that when im in a vehicle
  11. mjau

    if check dont work

    it dont even show the debugstring exept when im in a vehicle
  12. mjau

    if check dont work

    ahh dammn new problem now it wont warp me into the interior when im out of a vehicle either
  13. mjau

    if check dont work

    oh and this is something else but just a quesiton how can i make a colshape inside an interior
  14. 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
  15. mjau

    if check dont work

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

    if check dont work

    still warps me to nowhere when im in a vehicle and tirgger that function Edit with nowhere i mean everything disappears
  17. 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
  18. mjau

    EMP Project

    i didnt ask i will try myself but i need the functions to get nearest player in a car /plane exept me
  19. mjau

    EMP Project

    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?
×
×
  • Create New...