From Official DarkRP Wiki
|Hook name||playerAFKDemoted(Player ply)|
|When a player is demoted for being AFK.|
|Returns:||boolean shouldDemote, number team, boolean suppressMessage, string demoteMessage|
|BBCode Link:||[b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerAFKDemoted]playerAFKDemoted hook[/url][/b]|
- ply (Player)
The player being demoted.
- shouldDemote (boolean)
- team (number)
- suppressMessage (boolean)
- demoteMessage (string)
Prevent the player from being actually demoted.
The team the player is to be demoted to (shouldDemote must be true.)
Suppress the demote message.
Replacement of the demote message text.