Hooks suggestionsSolved

Hello, I wanted to write a plugin for displaying UI with a timer during teleportation. But I've only found 2 suitable hooks: OnTeleportAccepted and OnTeleportRequestCompleted.

Could you please add a couple more hooks, such as:

  • OnTeleportInterrupted(BasePlayer player) - so that it's possible to remove the UI if the teleportation is canceled. If I'm not mistaken, the method is SendInterruptMessage;
  • OnHomeAccepted(BasePlayer player, int countdown) - so that it's possible to track when a player starts teleporting home.

And if possible, could you add a third parameter int countdown to the OnTeleportAccepted hook, so I can obtain the teleportation time.

Thank you!

heya. sure. added these to next update

OnTeleportInterrupted(BasePlayer player)

OnHomeAccepted(BasePlayer player, string home, int countdown)

OnTeleportAccepted(BasePlayer target, BasePlayer player, int countdown)

Thank you for the quick response and for adding new hooks!

Locked automatically