Ulysses Stuff > Ulysses Release Archives

AAFK V_3.1 : Anti-AFK system for Garry's Mod

<< < (3/25) > >>

Eccid:
So this is what I have (on all three functions) gonna test it soon and tell you how it goes.


--- Code: --- function ulx.AFKExit_Chat( pl )
if pl.afk == false then return end
if pl:IsSpec() then return end

if not IsValid( pl ) then return end
if not pl:IsConnected() then return end
ulx.ResetAFKStatus( pl )
print("1")

end
--- End code ---

MrPresident:
Well, you can get rid of the print line at the end of the functions. Those were debug lines that I forgot to remove.

Bizzclaw:
Does it detect if people are working on a PAC3 outfit?
http://steamcommunity.com/sharedfiles/filedetails/?id=104691717
Don't want people to be kicked when making a custom model, especially because they wouldn't have a chance to save and if they have been working that long on an outfit, they may rage quit, and that's just no fun. 

JamminR:

--- Quote from: Bizzclaw on March 07, 2013, 12:41:36 PM ---Does it detect if people are working on a PAC3 outfit?

--- End quote ---
I've not looked at code, but, most likely, no.
I'm betting once he gets back on his (coding) feet after his surgery, he could probably investigate ways to monitor in-game menu actions or key presses, without being specific to just PAC.

Bizzclaw:
I was thinking that perhaps 60 or 30 seconds before they are autokicked, it opens a derma panel over evrything else that says "You are about to be kicked for being AFK! If you're there, hit this button." And the player can simply click the button and the timer resets, otherwise they get kicked would be a bit annoying, but it would be easy, and heck I could probably do that if I looked in to it a bit.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version