Player.ForceToSpawnScreen

From Liberty Unleashed Wiki
Revision as of 19:04, 1 October 2010 by Force (Talk | contribs)

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

  1.  
  2. This example sends the playe to the spawn screen when they type '/spawnscreen'.
  3.  
  4. function onPlayerCommand( pPlayer, szCommand, szText )
  5. {
  6. if ( szCommand == "spawnscreen" )
  7. {
  8. pPlayer.ForceToSpawnScreen();
  9. }
  10. return 1;
  11. }
  12.  

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