SampSharp
SampSharp
SampSharp.GameMode.World
BasePlayer Class
BasePlayer Methods
SpectatePlayer Method
SpectatePlayer Method (BasePlayer)
SpectatePlayer Method (BasePlayer, SpectateMode)
BasePlayer
SpectatePlayer Method (BasePlayer)
Makes this
BasePlayer
spectate (watch) another player.
Namespace:
SampSharp.GameMode.World
Assembly:
SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
Copy
public
virtual
void
SpectatePlayer
(
BasePlayer
targetPlayer
)
Parameters
targetPlayer
Type:
SampSharp.GameMode.World
BasePlayer
The Player that should be spectated.
Remarks
Order is CRITICAL! Ensure that you use
ToggleSpectating(Boolean)
before
SpectatePlayer(BasePlayer, SpectateMode)
.
See Also
Reference
BasePlayer Class
SpectatePlayer Overload
SampSharp.GameMode.World Namespace