ULX

Author Topic: AFK Script help  (Read 1987 times)

0 Members and 1 Guest are viewing this topic.

Offline ArnyDaHamsta

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
AFK Script help
« on: November 07, 2016, 09:06:30 AM »
Hey! So I recently got a AFK script, but it kicks me when I am owner.  How do I add it so that id won't kick admins, superadmins, developer, co-owner and owner?

Here is the code:

http://pastebin.com/dmrURA37

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: AFK Script help
« Reply #1 on: November 07, 2016, 10:13:42 AM »
If inheritances are setup how I'd think they are, in the order you specified, put a check right after the for loop that checks if the person is an admin or higher (use this to help) and if they are, do nothing (return end)
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline ArnyDaHamsta

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: AFK Script help
« Reply #2 on: November 07, 2016, 10:44:30 AM »
Not a clue what that means

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given