Jump to content

Please help me in this script .


PedroL

Recommended Posts

MarkTraf = createMarker (2430.783203125, -988.7255859375, 70.225921630859,"cylinder",2.0 , 255, 255, 0, 255)

setTimer( function( )
	local players = getElementsByType( 'player' )
	for i=1, #players do
		local player = players[ i ]
		if isElementWithinMarker( player, MarkTraf ) then
			givePlayerMoney( player, 500 )
		end
	end
end, 120000, 0 )

 

Hello.I wanted when you pass the marker having to type /traficar and fecasse with three level sought .:)

Link to comment
MarkTraf = createMarker(2430.783203125, -988.7255859375, 70.2225921630859, "cylinder", 2.0, 255, 255, 0, 255)

setTimer(function()
        local players = getElementsByType("player")
        for i=1, #players do
                if isElementWithinMarker(i, MarkTraf) then
                        givePlayerMoney(i, 500)
                else
                  addCommandHandler("traficar", function()
                end)
                end
        end
 end, 120000, 0)

after the addCommandHandler put your code you want

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