Scripting/Squirrel/Events/Player/onPlayerExitSpectating

From VC-MP Wiki

Jump to: navigation, search

This is called when a player exits the spectate mode.

Syntax

function onPlayerExitSpectating( player )

Parameters

  • player - The pointer of the player who was spectating

Example

This example will remind the player that they just exited the spectate mode.

function onPlayerExitSpectating( player )
{
     MessagePlayer( "Stopped spectating.", player );
}

Notes

The function MessagePlayer was used in in this example. More info about it in the corresponding page.

Related Events

Personal tools
squirrel scripting