onPlayerSpectate
Description
This is called when player spectate another player
| Name | Description |
|---|---|
| player | The pointer of the player |
| target | The pointer of the target |
Example
Send message to player when spectating
function onPlayerSpectate(player, target) { MessagePlayer("You are spectating " + target.Name, player);}