matheu_yu Posted January 3, 2022 Posted January 3, 2022 function removeTagBVC(thePlay) outputChatBox("Teste 1") aclGroupRemoveObject (aclGetGroup("Staff"), "user."..getAccountName(getPlayerAccount(thePlay))) outputChatBox("test 2 ") end addEventHandler ( "onPlayerQuit", root, removeTagBVC ) não to conseguindo retirar a tag, ja tentei de varias outras maneiras, tentei tbm quando o jogador loga
angeluni Posted January 3, 2022 Posted January 3, 2022 (edited) Tenta tirar o thePlay dos parâmetros da função "function removeTagBVC()" e altere os restante por source, ve se vai 5 minutes ago, angeluni said: Tenta tirar o thePlay dos parâmetros da função "function removeTagBVC()" e altere os restante por source, ve se vai function removeTagBVC() outputChatBox("Teste 1") aclGroupRemoveObject (aclGetGroup("Staff"), "user."..getAccountName(getPlayerAccount(source))) outputChatBox("test 2 ") end addEventHandler ( "onPlayerQuit", root, removeTagBVC ) Tipo isso tenta usar o isObjectInACLGroup para verificar se o player que saiu do sv, está no grupo que vc quer retirar. Edited January 3, 2022 by angeluni
angeluni Posted January 3, 2022 Posted January 3, 2022 AHH e não esquece de ir na acl ADMIN do servidor e colocar lá resource.nomedoseuscript outro exemplo de como ficaria function removeTagBVC ( ) local accName = getAccountName ( getPlayerAccount ( source ) ) -- get his account namelocal getAccountName getPlayerAccount if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Staff" ) ) then -- aclGroupRemoveObject (aclGetGroup("Staff"), "user."..accName) --Removing the admin. end end addEventHandler ( "onPlayerQuit" , root , removeTagBVC )
matheu_yu Posted January 3, 2022 Author Posted January 3, 2022 mano ele aparece que executou o comando mais no painel "P" ele mostra que estou com a tag Não sei Pq function removeTagBVC ( ) outputChatBox("testen1") local accName = getAccountName ( getPlayerAccount ( source ) ) -- get his account namelocal getAccountName getPlayerAccount if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Staff" ) ) then -- aclGroupRemoveObject (aclGetGroup("Staff"), "user."..accName) --Removing the admin. outputChatBox("teste 2") end end addEventHandler ( "onPlayerLogin" , root , removeTagBVC ) Botei "teste 1" e "teste 2 " pra ver ele estar executando e foi mais por algum motivo continua na acl Aaa agora deu certo Muito Obrigado serio mesmo @angeluni Minha Host acabou caindo ai fui testa no servido local e acabei esquecendo de botar o mod com admin
angeluni Posted January 3, 2022 Posted January 3, 2022 24 minutes ago, matheu_yu said: mano ele aparece que executou o comando mais no painel "P" ele mostra que estou com a tag Não sei Pq function removeTagBVC ( ) outputChatBox("testen1") local accName = getAccountName ( getPlayerAccount ( source ) ) -- get his account namelocal getAccountName getPlayerAccount if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Staff" ) ) then -- aclGroupRemoveObject (aclGetGroup("Staff"), "user."..accName) --Removing the admin. outputChatBox("teste 2") end end addEventHandler ( "onPlayerLogin" , root , removeTagBVC ) Botei "teste 1" e "teste 2 " pra ver ele estar executando e foi mais por algum motivo continua na acl Aaa agora deu certo Muito Obrigado serio mesmo @angeluni Minha Host acabou caindo ai fui testa no servido local e acabei esquecendo de botar o mod com admin Disponha!
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