Hooks/Server/demoteTeam

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name demoteTeam(Player target)
Description:
The team the player is to be demoted to instead of the default team.
Returns: number demoteTeam
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/demoteTeam]demoteTeam hook[/url][/b]

Parameters

  1. target (Player)
  2. The player whom is to be demoted.

Return values

  1. demoteTeam (number)
  2. The team the player is to be demoted to.