TeixeiraRB Posted February 13, 2018 Share Posted February 13, 2018 Olá tudo bem? Bom estou fazendo um script de rouba o banco, mas queria que o roubo so acontecesse se tive 5 PM on, como passo para verificar quantos players tem do time PM? Se tive 5 PM on o roubo vai continua, agora se não tive o player não vai pode continua o roubo. Link to comment
Other Languages Moderators Lord Henry Posted February 13, 2018 Other Languages Moderators Share Posted February 13, 2018 (edited) function verificaRoubo () local theTeam = getTeamFromName ("PM") if (theTeam) then if countPlayersInTeam (theTeam) >= 5 then -- Se tem 5 ou mais jogadores no time "PM", então inicia o roubo. -- Inicia o roubo. else -- Cancela o roubo. end end end Edited February 13, 2018 by Lord Henry 1 Link to comment
TeixeiraRB Posted February 13, 2018 Author Share Posted February 13, 2018 Muito obrigado! 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