Mr.Lenz Posted March 14, 2021 Share Posted March 14, 2021 Como faço para bloquear esses comandos /almoto1 , /alpack1 , /almoney1 (quantidade) , /alm41 ? Link to comment
Administrators Tut Posted March 14, 2021 Administrators Share Posted March 14, 2021 Welcome to the forums @Mr.Lenz. Your thread has been moved into the Portuguese scripting section, as this is not an issue suitable for the international Client Support section. Link to comment
Boechat Posted March 15, 2021 Share Posted March 15, 2021 Testa aí e veja se vai dar certo: local comandosBloqueados = {'almoto1', 'alpack1', 'almoney1', 'alm41'} --Adicione aqui os comandos que deseja bloquear function onCommand (cmd) for i, comandoBloq in ipairs (comandosBloqueados) do if comandoBloq == cmd then cancelEvent () end end end addEventHandler("onPlayerCommand",root, onCommand) 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