Jump to content

[Help] Pickup


AlexWo

Recommended Posts

Hi

I made a simple script called "Basejump" you enter a marker and you get warped to the tallest skyscraper in LosSantos.

On the roof I placed a Parachute-Pickup via "createPickup" and so on.

The Parachute appears but if I hit it, it disappears and I don't get the Parachute :(

The script is Server-Based:

Basejump1 = createMarker(1576.26, -1332.2, 15.6, "cylinder", 1.5, 255, 0, 0) 
Parachute1 = createPickup ( 1541, -1364.8, 329.8, 3, 371, 15000 ) 
  
function basejump1 (theMarker) 
    if ( theMarker == Basejump1) then 
    setElementPosition ( source, 1541, -1360, 329.8 ) 
    end 
end 
addEventHandler ( "onPlayerMarkerHit", root, basejump1 ) 
  
function parachute1hit (thePickup) 
    if ( thePickup == Parachute1 ) then 
    giveWeapon( source, 371, 2) 
    end 
end 
addEventHandler ( "onPickupHit", Parachute1, parachute1hit ) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...