Author Topic: AntiAFK v2.2 - ULib Module  (Read 64912 times)

0 Members and 1 Guest are viewing this topic.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AntiAFK v2.1 - ULib Module
« Reply #15 on: January 21, 2008, 09:18:25 AM »
the only way you could do it currently would be to hard code it yourself.. just add this.

where it says
Code: [Select]
if v:IsAdmin() == true then
change to

Code: [Select]
if v:IsAdmin() == true or v:IsUserGroup("group") == true or v:IsUserGroup("group") == true then
adding as many groups as you need to with more or conditions.

I'll probably add this feature to a future version.

Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Re: AntiAFK v2.1 - ULib Module
« Reply #16 on: January 21, 2008, 09:45:29 AM »
So i would add this under the superadmin line?  The thing is i have my groups being inherited from the superadmin group, so do i even need to add my custom groups?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AntiAFK v2.1 - ULib Module
« Reply #17 on: January 21, 2008, 09:51:02 AM »
IsAdmin will return true for all groups that inherit Admin. Superadmin inherits admin by default, unless you've changed it.

However, one thing I am not sure of... I dont know if IsAdmin will return true for any groups inheriting the superadmin group.. I dunno if it passes that inheritance that far.


If all of the groups you want to be immune are superadmin or inherited from the superadmin just change that IsAdmin line to IsSuperAdmin.


I'm working on a new system for exclusions. (thanks to spbogie for the suggestion) It'll make your life a lot easier. shouldn't take too long to impliment, just sit tight for about 10-15 minutes =)

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: AntiAFK v2.1 - ULib Module
« Reply #18 on: January 21, 2008, 09:54:01 AM »
If they are inheriting from SuperAdmin then there should be no need to add anything.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AntiAFK v2.1 - ULib Module
« Reply #19 on: January 21, 2008, 10:06:48 AM »


v2.2
-Added Access String in the adminimmunity checks. This allows you to give additional groups/users immunity on the fly. See the topic below for how to use.

Immunity Access String Usage.
If you are running ULX (this addon REQUIRES ULib) you can do the following to give an user immunity to the kick if aafk_adminimmunity is on.
ulx userallow <username> "aafk_immune"
This will add the access string "aafk_immune" to their user file and will keep them from being kicked
Also you can edit your data/ULib/groups.txt file and add "aafk_immune" to any groups allow list to give everyone in the group immunity from being kicked.
Please keep in mind that all of this requires aafk_adminimmunity console variable to be set to 1 (on)


Additional comments on the access string usage.

ulx userallow <user> "aafk_immune" 1    - this will remove a previously given acess to immunity
ulx userdeny <user> "aafk_immune" - this will make it to where someone who is in a group who has this flag by default will not receive it.
ulx userdeny <user> "aafk_immune" 1 - This will make it to where someone who is in a group who has this flag but had it taken away with userdeny will receive the flag again by default.


confusing? sorry =)
« Last Edit: January 21, 2008, 10:10:34 AM by zakap »

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Re: AntiAFK v2.2 - ULib Module
« Reply #20 on: April 23, 2008, 12:01:25 PM »
Where is the download?

EDIT : found 2.3 on garrysmod


Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AntiAFK v2.2 - ULib Module
« Reply #21 on: April 23, 2008, 12:03:19 PM »
It would seem that gmod.org has pushed the file out. I'm actually working on a new one now, it'll be done in the next couple of days or so.

edit: Oh.. 2.3 is the latest, I had just forgot to add it to these forums. But like I said I'm workong on a better/newer rewrite.
« Last Edit: April 23, 2008, 12:06:38 PM by MrPresident »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: AntiAFK v2.2 - ULib Module
« Reply #22 on: April 23, 2008, 12:13:51 PM »
Good work MrPresident!
Experiencing God's grace one day at a time.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AntiAFK v2.2 - ULib Module
« Reply #23 on: April 23, 2008, 12:32:21 PM »
heh, thanks. 2.3 is old. January 23rd. All I added from 2.2 was some movement checks. There have been a few GMod updates since this addon, and looking back at the code, it's very poorly coded, seeing as this was the first project and I learned as I went. I've learned a few new tricks since then and the newer version is looking a lot better than these ones. I'll definitely post here when it's done.

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Re: AntiAFK v2.2 - ULib Module
« Reply #24 on: May 09, 2008, 03:24:11 PM »
Any update on the new one?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AntiAFK v2.2 - ULib Module
« Reply #25 on: May 09, 2008, 08:15:34 PM »
slow =) I'll post here when I finish it =)

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Re: AntiAFK v2.2 - ULib Module
« Reply #26 on: May 10, 2008, 01:09:14 AM »
Can we change the Autokick Message?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AntiAFK v2.2 - ULib Module
« Reply #27 on: May 10, 2008, 12:28:41 PM »
Yes, just change the lua. You should see the line where it has the message.

Offline Enrico42

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
Re: AntiAFK v2.2 - ULib Module
« Reply #28 on: September 24, 2008, 01:46:55 PM »
Please re up this plugin is cool !!!!!!!!!!!!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: AntiAFK v2.2 - ULib Module
« Reply #29 on: September 24, 2008, 06:10:12 PM »
Please re up this plugin is cool !!!!!!!!!!!!

Enrico, the author of this plugin is currently in the military and can't reupload it.
Perhaps WildWill still uses the latest version, and can attach it here?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming