Jump to content

Bloquear un comando a un team ?


Recommended Posts

CMDBLOQUEAR = {
    ["almoto1"] = true,
    ["alpack1"] = true,
    ["almoney1"] = true,
    ["alvida1"] = true,
    ["alcolete1"] = true,
    ["alfix1"] = true,
    ["me"] = true,
    ["exit"] = true,
    ["logout"] = true,
    ["x1"] = true,
    ["logout"] = true,
    ["resetar"] = true,
}

function BLOQUEARCOMANDOS( Comando )
if CMDBLOQUEAR[ Comando ] == true then
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then return end
cancelEvent()
triggerClientEvent(source, "addNotification", root, "Você não tem essa permissão!")
end
end
addEventHandler("onPlayerCommand", root, BLOQUEARCOMANDOS)

Encontre estre script de bloqueo de comando pero es para ACL quisiera un ayuda para convertirlo en bloqueo pero para TEAM

Edited by djantony
Link to comment
  • djantony changed the title to Bloquear un comando a un team ?

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...