11
Suggestions / Re: Auto-add to usergroup based on kick/banned.
« Last post by MrPresident on January 07, 2021, 08:29:25 AM »This is not a feature of ULX nor will something like this be added to ULX officially.
We do, however, have hooks in place that would allow you to write this function yourself.
http://ulyssesmod.net/docs/files/lua/ulib/shared/defines-lua.html#ULibPlayerBanned
http://ulyssesmod.net/docs/files/lua/ulib/shared/defines-lua.html#ULibPlayerKicked
The above two links are the hooks you would need to use to detect when a player is kicked or banned.
http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.addUser
The above link is the ULib UCL function you could call to set the player's group.
I hope this helps.
We do, however, have hooks in place that would allow you to write this function yourself.
http://ulyssesmod.net/docs/files/lua/ulib/shared/defines-lua.html#ULibPlayerBanned
http://ulyssesmod.net/docs/files/lua/ulib/shared/defines-lua.html#ULibPlayerKicked
The above two links are the hooks you would need to use to detect when a player is kicked or banned.
http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.addUser
The above link is the ULib UCL function you could call to set the player's group.
I hope this helps.
