Call of Duty 4: Scripting Reference - Client::AllowSpectateTeam
From COD Modding & Mapping Wiki
AllowSpectateTeam( <team>, <spectate> )
Module: Client
MP Only
Summary:
Set whether the player can spectate the given team.
Call this on: A Player
Example:
self AllowSpectateTeam( "axis", true );
Required arguments:
- <team> A string description of the team. Valid teams are 'axis', 'allies', 'none' or 'freelook'
- <spectate> A boolean value describing whether this player can spectate on this team.
Optional arguments:
- none
Notes:
- none