Scripting/Squirrel/Events/Player/onPlayerExitSpectating
From VC-MP Wiki
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
- onPlayerJoin
- onPlayerPart
- onPlayerCrashDump
- onPlayerSpawn
- onPlayerDeath
- onPlayerKill
- onPlayerTeamKill
- onPlayerChat
- onPlayerAction
- onPlayerPM
- onPlayerFailedPM
- onPlayerTeamChat
- onPlayerCommand
- onPlayerHealthChange
- onPlayerArmourChange
- onPlayerWeaponChange
- onPlayerCashChange
- onPlayerScoreChange
- onPlayerKeyStateChange
- onPlayerMove
- onPlayerRequestClass
- onPlayerRequestAmmunation
- onPlayerRequestAmmuWeapon
- onPlayerStartSpectating
- onPlayerExitSpectating
- onPlayerRconLogin
- onPlayerRconLoginAttempt
- onPlayerFall
- onPlayerVersion
