Jump to content

PRECISO DE AJUDA PARA DESTRUIR OS PICKUP E PEGAR UM VALOR NOS PICKUP


Recommended Posts

function caixa1(Jogador)
	if isElementWithinMarker(Jogador, markers[1]) then 
	     setTimer( function ()
		 givePlayerMoney(Jogador,5000) ------PEGAR VALOR NOS PICKUP
		 mbag = createPickup( -2412.6999511719, -579.20001220703, 131.89999389648, 3, 1212 ) -----DESTROIR PICKUPS
		 mbag = createPickup( -2414.5,-579.5 ,131.89999389648, 3, 1212 )	
         mbag = createPickup( -2412.3000488281, -578.79998779297, 131.89999389648, 3, 1212 )	 
		 mbag = createPickup( -2413.6999511719, -579.79998779297, 131.89999389648, 3, 1212 )
		 mbag = createPickup( -2412.8000488281,-578.70001220703, 131.89999389648, 3, 1212 )	
         mbag = createPickup( -2413.1999511719,-579, 131.89999389648, 3, 1212 )	 
	     mbag = createPickup( -2413.6000976563, -579.29998779297, 131.89999389648, 3, 1212 )
		 mbag = createPickup( -2414.1000976563,-579.5, 131.89999389648, 3, 1212 )	
         mbag = createPickup( -2412.8000488281,-578.20001220703, 131.89999389648, 3, 1212 )	 
		 mbag = createPickup( -2413.3000488281,-578.40002441406, 131.89999389648, 3, 1212 )
		 mbag = createPickup( -2413.6999511719,-578.79998779297, 131.89999389648, 3, 1212 )	
         mbag = createPickup( -2414.1000976563,-578.79998779297, 131.89999389648, 3, 1212 )	
         mbag = createPickup( -2413.1999511719,-577.90002441406, 131.89999389648, 3, 1212 )
         mbag = createPickup( -2414.5,-579.5 ,131.89999389648, 3, 1212 )		 

		triggerEvent(eventorestart, root)
		end, 1000, 1)
	end
 end
 addCommandHandler("robarcaixa1",caixa1)

 

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