Mr.Lenz Posted March 14, 2021 Posted March 14, 2021 Como faço para bloquear esses comandos /almoto1 , /alpack1 , /almoney1 (quantidade) , /alm41 ?
Moderators Tut Posted March 14, 2021 Moderators 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. Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu
Boechat Posted March 15, 2021 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) Te ajudei? Me ajude também deixando seu Thanks! Discord: _muelzera_
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