eo_tulio Posted June 19, 2023 Share Posted June 19, 2023 (edited) function showPlayerNotice(player, message) exports.MRT_InfoBox:addBox(player, message, "anunciar", 5000) end addCommandHandler("aviso", function(player, command, ...) local message = table.concat({...}, " ") if message ~= "" and isPlayerInACLGroup(player, "PP") then showPlayerNotice(player, message .. "\n\nPor: " .. getPlayerName(player)) end end) function isPlayerInACLGroup(player, aclGroup) local object = "user." .. getPlayerName(player) return isObjectInACLGroup(aclGroup, object) end Ao executar o comando o script não funciona e da erro Edited June 19, 2023 by Lord Henry Código convertido de texto para Lua. Link to comment
wesssley Posted June 19, 2023 Share Posted June 19, 2023 Opa @eo_tulio, irei tentar te ajudar! ao invés da função "isPlayerInACLGroup" use isso isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("ACLQUEDESEJA")) não testei, mas veja se irá funcionar! 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