Jump to content

[help] Destroy Object


Reggae

Recommended Posts

When the object reaches the end of the "Object move" it to be excluded

Sorry my bad english i an brazilian

  local marker = createMarker ( 1327.3870849609,-2693.2734375,7.6328830718994, "cylinder", 1.5, 255, 255, 0, 170 ) 
   
  local myBlip = createBlip( 430.34103393555,-3729.3193359375,6.0948004722595, 51) 
  
      addEventHandler ( "onMarkerHit", marker, 
    function ( thePlayer ) 
        if ( getElementType ( thePlayer ) == "player" ) then 
            if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup (  "Everyone" ) ) then 
            obj = createObject ( 9584, 1278.4388427734,-2774.5419921875,9.5540159702301, 0, 0, 270 ) 
            moveObject ( obj, 60000, 741.53302001953,-3456.9826660156,6.0948004722595 ) 
                setElementPosition ( thePlayer, 1280.5112304688,-2785.1921386719,20.063390731812 ) 
                setElementInterior (thePlayer, 0) 
                setElementDimension (thePlayer, 0) 
            end 
        end 
    end 
) 
  
  

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