djantony Posted May 25, 2022 Share Posted May 25, 2022 (edited) 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 May 25, 2022 by djantony Link to comment
xAzke Posted May 26, 2022 Share Posted May 26, 2022 Puedes utilizar getPlayerTeam y getTeamName. Si se te complica puedes utilizar isPlayerInTeam (Es una función útil, por lo cual deberás copiar el código que sale en la wiki y pegarlo en tus archivos) 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