ULX

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

0 Members and 3 Guests are viewing this topic.

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 #105 on: March 28, 2015, 11:31:02 AM »
You're not getting kicked or warned because you are an admin and you have ignore admins turned on.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Belly136

  • Newbie
  • *
  • Posts: 33
  • Karma: -2
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #106 on: March 28, 2015, 12:13:53 PM »
I don't know what i'm typing anymore. I have it off not on  :-\
« Last Edit: March 30, 2015, 01:44:36 AM by Belly136 »

Offline Belly136

  • Newbie
  • *
  • Posts: 33
  • Karma: -2
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #107 on: March 30, 2015, 01:44:05 AM »
Anyone?

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 #108 on: March 30, 2015, 02:20:13 AM »
This plugin is pretty old. I wouldn't be surprised if something either in your gamemode or in garrysmod is preventing players from being flagged as AFK.
Is it just you or all players on your server?

Offline Belly136

  • Newbie
  • *
  • Posts: 33
  • Karma: -2
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #109 on: March 30, 2015, 10:43:23 PM »
Well the problem is i'm just testing few scripts so i'm doing all alone. I'll ask friend and i'll also try on different gamemode.

Edit: Nevermind. I've completely reinstalled my server and it's working fine now. How can i double time before player gets kicked if he's a donator?
« Last Edit: March 30, 2015, 11:56:21 PM by Belly136 »

Offline Bryantdl7

  • Jr. Member
  • **
  • Posts: 86
  • Karma: -2
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #110 on: March 31, 2015, 04:53:24 AM »

Well the problem is i'm just testing few scripts so i'm doing all alone. I'll ask friend and i'll also try on different gamemode.

Edit: Nevermind. I've completely reinstalled my server and it's working fine now. How can i double time before player gets kicked if he's a donator?
feel free to correct me if im wrong but i dont believe there is the ability to do that currently



Offline Belly136

  • Newbie
  • *
  • Posts: 33
  • Karma: -2
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #111 on: April 01, 2015, 03:22:02 AM »
Ok so i guess aafk isn't working on prop hunt because i've tried everything. I've tested it on clean ph gamemode and it wasn't working. But on one i used before it worked but it was always flagging me as afk after 2 minutes(when it is actually set to 10 and ignore admins set to 1).

Offline Nekomi

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
  • Nya~
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #112 on: October 18, 2015, 07:35:59 AM »
Sorry to bumps this thread, (you can delete my post if needed) but i've applied theses lines into my console, but as SuperAdmin, i still get kicked for afk.

Anyone have encountered the same problem ?

Otherwise, i'm kinda interessed by an addition on this plugin, i mean, having a text above the player ead and it says "AFK".

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 #113 on: October 18, 2015, 11:50:08 AM »
SuperAdmin, i still get kicked for afk.
To my knowledge, this looks for "superadmin" not "SuperAdmin", and, you'd have to have the setting for ignore admins enabled.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Nekomi

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
  • Nya~
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #114 on: October 24, 2015, 04:44:06 PM »
Fixed, now i'm looking to add my moderators to the lua, but if i replace IsAdmin by pl:IsUserGroup("mod")

Will admins get kicked ?

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 #115 on: October 25, 2015, 09:45:49 AM »
yes, you would need to replace it with:

if pl:IsAdmin() then

with

if pl:IsAdmin() or pl:IsUserGroup("mod") then

Offline Nekomi

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
  • Nya~
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #116 on: October 25, 2015, 11:31:21 AM »
well, i forgot one, so if i do

if pl:IsAdmin() or pl:IsUserGroup("mod") or pl:IsUserGroup("NivMax") or pl:IsUserGroup("NivMax") and GetConVarNumber( "ulx_afk_ignoreadmins" ) == 1 then

this will work ?
« Last Edit: October 25, 2015, 11:34:27 AM by Nekomi »

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 #117 on: October 25, 2015, 12:21:04 PM »
For this, you would need to close the first set of arguments in parenthesis.

if ( pl:IsAdmin() or pl:IsUserGroup("mod") or pl:IsUserGroup("NivMax") or pl:IsUserGroup("NivMax") ) and GetConVarNumber( "ulx_afk_ignoreadmins" ) == 1 then

Offline ProxyRP

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #118 on: January 23, 2016, 06:01:57 PM »
Thank you so much, this will be very useful.

Offline Jamster

  • Newbie
  • *
  • Posts: 9
  • Karma: 1
  • Oh... Hi :)
    • http://2swag4you.net
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #119 on: April 05, 2016, 08:56:09 AM »
Is there someway to echo the AFK only to staff and the person directly?

So it doesn't come in chat for other users, at all, even as a "(Someone)"