murilo2929 Posted September 4, 2019 Posted September 4, 2019 Então galera eu estou fazendo um pickup para pegar skin no meu servidor e estou tentando fazer que quando o player já tenha a skin a mesma seja removida do seu inventario, o problema é que quando estou com a skin no inventario e passo pelo pickup a mesma não é removida do inventario ela fica lá. thePickup = createPickup ( -32.2197265625, -138.232421875, 1003.546875, 3, 1275, 1000 ) setElementDimension(thePickup, 72) setElementInterior(thePickup, 16) function testepickup ( thePlayer ) if exports.dota:temitm( thePlayer, 1, 50) then exports.dota:tiraritm( thePlayer, 1 50) end local theTeam = getPlayerTeam(thePlayer) local factionType = getElementData(theTeam, "type") if factionType==90 then exports.dota:daritm( thePlayer, 1, 50 ) end end addEventHandler ( "onPickupUse", thePickup, testepickup ) OBS: Só consegue pegar a skin que é da facção 90.
DNL291 Posted September 7, 2019 Posted September 7, 2019 Faça uma depuração nos valores e nos trechos dos exports, se não tiver nada anormal depure a própria função exportada. Please do not PM me with scripting related question nor support, use the forums instead.
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