DDoSMTA Posted August 23, 2018 Share Posted August 23, 2018 function isPlayerOnGroupPj ( player ) local account = getPlayerAccount ( player ) local inGroup = false for _, group in ipairs ( { "Everyone", } ) do if isObjectInACLGroup ( "user.*".. getAccountName ( account ), aclGetGroup ( group ) ) then inGroup = true break end end return inGroup end Como Faço para liberar para todos os jogadores? Link to comment
[M]ister Posted August 23, 2018 Share Posted August 23, 2018 (edited) 1. Post na área errada; 2. Código sem formatação; function isPlayerOnGroupPj ( player ) local account = getPlayerAccount ( player ) local inGroup = false for _, group in ipairs ( { "Everyone", } ) do if isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( group ) ) then inGroup = true break end end return inGroup end Edited August 23, 2018 by MaligNos Link to comment
DNL291 Posted August 27, 2018 Share Posted August 27, 2018 Para liberar para todos jogadores, primeiro, corrija sua função, tem uma vírgula depois de "Everyone" essa verificação só verifica esse grupo, talvez você você queira de outra forma. Pra fazer a checagem em todos jogadores, use a função getElementsByType. 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