Squirrel/Server/Functions/Players/Spawn

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|Player.Spawn}} This function forces a player to spawn. == Arguments == * ''' player ''' - The player to be spawned. == Example == This command will make your…')

Revision as of 01:01, 24 October 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function forces a player to spawn.

Arguments

  • player - The player to be spawned.

Example

This command will make yourself spawn.

  1.  
  2. function onPlayerCommand( player, cmd, text )
  3. {
  4. if ( cmd == "spawnme" )
  5. {
  6. player.Spawn();
  7. }
  8. return 1;
  9. }
  10.  

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox