I just made a script, This script effects everyone. I just want the "Staff" team not to be effected from this script.
What should I do to remove the "staff" team from this script?
-- List of commands to disable
cmdList = {
["speaker"]=true,
["superman"]=true,
}
-- Disable unwanted commands
addEventHandler("onPlayerCommand", root,
function(cmdName)
if cmdList[cmdName] then
cancelEvent()
end
end)