PedroL Posted September 21, 2016 Share Posted September 21, 2016 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
Dimos7 Posted September 21, 2016 Share Posted September 21, 2016 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now