Player.ForceToSpawnScreen

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This Player class member will force the player to the spawn screen.

Syntax

  1. bool Player.ForceToSpawnScreen()

Arguments

  • none

Example

This example sends the player to the spawn screen when they type '/spawnscreen'.

  1.  
  2. function onPlayerCommand( pPlayer, szCommand, szText )
  3. {
  4. if ( szCommand == "spawnscreen" )
  5. {
  6. pPlayer.ForceToSpawnScreen();
  7. }
  8. return 1;
  9. }
  10.  

Notes

The event onPlayerCommand was used in this example. More info about this in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox