Jump to content

Bloquear comandos

Recommended Posts

Como faço para bloquear esses comandos /almoto1 , /alpack1 , /almoney1 (quantidade)/alm41  ? 


Link to post
  • Administrators

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 post

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 ()
addEventHandler("onPlayerCommand",root, onCommand)
Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...