Maaster Posted January 13, 2021 Share Posted January 13, 2021 Eu estava procurando aqui e não achei nenhuma função para adicionar mais um level de procurado a um jogador, achei apenas a função setPlayerWantedLevel, mais não eh isso q eu quero, pois ela não adiciona um level a mais, ela seta a quantia, oque quero fazer eh adicionar apenas 1 level de procurado ao roubar, e ao roubar novamente, adicionar mais um level, assim juntando 2. Link to comment
ber Posted January 13, 2021 Share Posted January 13, 2021 setPlayerWantedLevel(player, getPlayerWantedLevel(player) + 1) 1 Link to comment
Maaster Posted January 13, 2021 Author Share Posted January 13, 2021 Deu certo aqui e pra adicionar vida seria assim? setElementHealth(player, getElementHealth(player) + 20) Link to comment
ber Posted January 13, 2021 Share Posted January 13, 2021 18 minutes ago, Maaster342 said: Deu certo aqui e pra adicionar vida seria assim? setElementHealth(player, getElementHealth(player) + 20) Sim, desta maneira você pega a vida ou nível de procurado do player atual e soma com o valor inserido depois. 1 Link to comment
Maaster Posted January 14, 2021 Author Share Posted January 14, 2021 Deu tudo certo, na parte do level de procurado, deixei assim pra não dar erro no debug, vlw ai if getPlayerWantedLevel(Player) < 6 then setPlayerWantedLevel(Player,getPlayerWantedLevel(Player)+1) end 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