This is a AFK system with the following features:
/afk [reason]
Command
- Toggle AFK status on/off for the player
- Optionally accepts a custom AFK reason (e.g., /afk brb dinner)
- Broadcasts to the server when a player goes AFK or returns
- Updates the player's tab list name and tab suffix with a [AFK] tag
Auto-Unmark AFK
The script automatically removes AFK status when a player:
- Moves (on player move)
- Chats (on chat)
Both events broadcast a return message and reset the tab list name/suffix.
Cleanup on Quit
- Clears the AFK variable and resets tab suffixes when a player disconnects