Ulysses
Ulysses Stuff => Suggestions => Topic started by: Fleamonji on January 24, 2011, 04:11:12 PM
-
Hooks when someone gets kicked/banned would be nice. I'm trying to make ULX store every kick into a MySQL database, but it's pretty much impossible without a hook
-
Could easily write your own ULX ban/kick monitoring hook.
http://ulyssesmod.net/docs/files/lua/ulib/shared/defines-lua.html#ULibPlayerTarget
As for when rcon/server did it without ULX, not sure what the hook might be.
-
http://ulyssesmod.net/docs/files/lua/ulib/shared/defines-lua.html#ULibPostTranslatedCommand
if ( commandName == "ulx ban" or commandName == "ulx banid" ...
Et cetera..
-
Yes, what Sticky said for 'after' the command is performed would, logically, be even better.
However, that stilll doesn't account for non ULX commands 'kick, kickid, ban, banid, etc'.
Those are server functions, and I'm not sure Garry ever made lua hooks for them.
I poked around the Gmod wiki. Seems Gamemode.PlayerDisconnected itself only kicks off when a 'normal' disconnect occurs (quit, etc)