Jump to content

Access Denied


//_Dragon

Recommended Posts

Posted

Add the resource to a privileged ACL group (such as Admin ACL group) (any group would do as long it is linked to an ACL that has right 'function.setPlayerMuted' set to true)

Posted

Multiply the duration by another 60 again (duration is in second by default, 1 second * 60 * 60 = 3600 seconds = 1 hour).

If you want banning in hours exclusively, use math.abs() to covert the given value to an absolute number, that is, a whole, non-negative number. That way, the given value will have to be always a full hour (0.5 hours won't work as 30 minutes). Otherwise, be sure to check whether the give value is over 0 as you don't want to give bans for 0 or -1 or less hours.

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