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

0 Members and 1 Guest are viewing this topic.

Offline Games_Arsenal96

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #120 on: July 08, 2016, 10:57:23 PM »
Hello I am a server owner and I'm trying to make my server stop the utime from counting up when a player goes AFK how will I do that???

I have your script installed and it works flawlessly except one thing when a player goes AFK they can still get ranks from Ulx_Autopromote how can I stop that from happening?

Server IP is:66.150.188.160:27015
« Last Edit: July 08, 2016, 11:01:09 PM by Games_Arsenal96 »

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 #121 on: July 09, 2016, 07:14:09 AM »
Have this script kick them if they go afk too long.
No ranking that way.
I personally don't like autopromote systems, but, being kicked when AFK too long would definitely prevent that.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Kraken

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #122 on: July 14, 2016, 04:03:29 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

So if you want to do admin, and then a custom rank you put the pl:IsAdmin() and then actually write out or pl:IsUserGrouo("namehere") after?

I'm trying to get it so it doesn't kick me (owner) when I afk.  Not sure what to replace
if pl:IsAdmin () and GetConVarNumber( "ulx_afk_ignoreadmins" ) == 1 then
 with in order to achieve that.   I have ignore admin on but my rank is "owner" on the server and team name is Fuhrer

« Last Edit: July 14, 2016, 04:24:25 PM by Kraken »

Offline Kraken

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: AAFK V_3.1 : Anti-AFK system for Garry's Mod
« Reply #123 on: July 14, 2016, 07:09:53 PM »
Nvm, it just all around doesn't work, the commands in console don't change anything, set it to no kick just to check, still kicks people. Unless I'm just missing something or doing something wrong.

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 #124 on: July 15, 2016, 04:16:07 PM »
This addon is old and likely doesn't work anymore.

I've been meaning to redo it, but haven't had the time.