General > Developers Corner

Hook for when somebody's user group is changed?

(1/1)

[ LittleBigBug_ ]:
Hey, on my server I've modified gForum to sync my players ranks to my forums, but only does it on initial spawn. I don't want to do a think loop unless I have to but I was wondering if there was some hook that is called when a players rank is changed that I could use. Thanks :) I tried looking on the documentation but I might've missed it

Megiddo:
http://ulyssesmod.net/docs/index/Hooks.html

You want UCLChanged, but you'll have to have your own logic to figure out if what changed is of interest to you.

[ LittleBigBug_ ]:
Perfect sounds good thank you :D

MrPresident:
Maybe we should add (or add to our list for ULX4) a hook that returns more specific info for this kind of event.
It could be useful for authors to know when a player's group change and info like: the player, group they were in, group they are changing to.

Megiddo:
All true, Mr. P. At the time, I couldn't figure out a good way to provide that level of complexity for the context, and I wasn't sure if enough people would use it to make it worthwhile.

Navigation

[0] Message Index

Go to full version