ULX

Author Topic: AAFK V_3.1 : Anti-AFK system for Garry's Mod  (Read 110861 times)

0 Members and 3 Guests are viewing this topic.

Offline The1stLieutenant

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #15 on: May 30, 2013, 07:15:21 AM »
I'd hate to ask, but I must be missing something, I can't seem to find where I get the ULX_AFK folder anywhere.

If someone could help me, that'd be great.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #16 on: May 30, 2013, 07:45:28 AM »
It's the attached file in the main post.

ULX_AFK.zip

Make sure that when you extract it, it stays in a folder called ULX_AFK. Inside that folder should be the addon.txt file along with a couple of folders.

Offline The1stLieutenant

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #17 on: May 30, 2013, 09:29:28 AM »
:/ I can't believe I missed that. Thanks!

Offline The1stLieutenant

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #18 on: May 31, 2013, 12:26:16 PM »
Wow, I tried it out, and it was better than I expected to be. I do have a couple suggestions though, I don't know how hard this would be, but would it be possible to code it so it ignore's certain groups? say if I wanted to make my own group called: cool guys, but they don't inherit from admin, so they're not immune to anti-AFK. But if I went into the lua folder, and changed a few things, such as: groups this affects, and say "cool guys" when I would save it, it will no longer affect that group.

My second suggestion is; you could put something in where it does ignore admins, and after a set of time it will give them the tag of AFK, but the auto-kick will ignore them. Say if there's a server full, and I need to kick an AFK for a friend/server owner. there could be an AFK admin/moderator, but since they're immune to anti-AFK I can't tell if he's AFK or not. if you were to do the above, then we could easily tell if ANYONE on the server is AFK, and if we really needed to, we would kick an admin/moderator for someone else.

That's all I have for now. If I have any other suggestions, I'll post them here.

Thanks for reading.

Offline Agentmass

  • Newbie
  • *
  • Posts: 25
  • Karma: -2
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #19 on: July 08, 2013, 10:35:41 PM »
I know this thread is kind of old, but would it be possible to add a chat command that would allow you to set your self afk? Like !afk.

Offline Epsilon

  • Newbie
  • *
  • Posts: 19
  • Karma: -1
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #20 on: July 15, 2013, 10:49:15 PM »
I also seem to be having trouble with exempting admins from the auto-kick. For some reason it doesn't seem to recognize them as admins and so it kicks them even when ulx_afk_ignoreadmins is set to 1.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #21 on: July 16, 2013, 12:14:42 PM »
How are your admins defined in ULX? This only ignores players who register on IsAdmin(). So this would be: superadmin, admin, and any other group that inherits admin.

Offline Eccid

  • Full Member
  • ***
  • Posts: 115
  • Karma: 11
  • Hey, come on... We just met...
    • Terror Abound! Steam Group
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #22 on: July 17, 2013, 10:16:20 AM »
Is there a way I can remove the chat command for this? I've been wanting to set up something that handles users wanting to go afk differently, but I can't find anywhere in this where the command is set up, let alone how to remove it.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #23 on: July 17, 2013, 01:34:00 PM »
Is there a way I can remove the chat command for this? I've been wanting to set up something that handles users wanting to go afk differently, but I can't find anywhere in this where the command is set up, let alone how to remove it.

There isn't a chat command for this. All this addon does is monitor a player and auto detect if they're afk.

Offline Eccid

  • Full Member
  • ***
  • Posts: 115
  • Karma: 11
  • Hey, come on... We just met...
    • Terror Abound! Steam Group
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #24 on: July 18, 2013, 06:56:34 AM »
I feel silly. I found where the problem was, apparently it was part of another plugin I thought I'd removed.

Offline newbchu

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #25 on: November 22, 2013, 12:08:07 AM »
What if you already have ULX do you put it in the ulx folder or just the addon folder?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #26 on: November 22, 2013, 01:52:41 PM »
It's an addon, goes in addons folder.
(Good tip - if when you open a release zip file, and there is an addon.txt file inside the first folder of the zip...good chances are it's an addon.)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline orrila

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #27 on: December 15, 2013, 02:05:02 PM »
Hi Guys

This is giving me errors (in single player, but its when I start, nothing loads up to do with this at all). Im not sure if it still works or not though, (nothing to test it on in SP). No access to gmod for me atm, so if you need the console errors I can get in a few days.

EDIT:
This was the errors in the console.

[ERROR] addons/ulx_afk/lua/ulx/modules/sh/aafk.lua:65: attempt to concatenate local 'PID' (a nil value)
  1. fn - addons/ulx_afk/lua/ulx/modules/sh/aafk.lua:65
   2. Call - addons/ulib/lua/ulib/shared/hook.lua:183
    3. unknown - addons/ulib/lua/ulib/init.lua:93
     4. unknown - lua/includes/modules/concommand.lua:69



Thanks

Orrila
« Last Edit: December 15, 2013, 03:21:26 PM by orrila »

Offline syn.

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 6
  • Lua Padawan
    • SynGaming
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #28 on: January 24, 2014, 05:14:56 PM »
I love this thanks pres!
Lua Student

"The more you understand, the crazier you get."

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #29 on: January 24, 2014, 05:47:15 PM »
I love this thanks pres!
seems legit.
bw81@ulysses-forums ~ % whoami
Homepage