magicplayerc Posted January 17, 2019 Share Posted January 17, 2019 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
DNL291 Posted January 19, 2019 Share Posted January 19, 2019 Seu código tem alguns erros, lembre-se sempre de usar o comando debugscript 3 para encontrar os possíveis erros no código. Também, da próxima vez poste na seção correta que é a Portuguese / Português 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