Player.Spawned

From Liberty Unleashed Wiki
Revision as of 16:15, 25 October 2010 by Force (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This Player class member returns whether the player has spawned or not.

Syntax

  1. bool Player.Spawned

Example

This will tell the player if they are spawned or not when they type '/spawned'.

  1.  
  2. function onPlayerCommand( pPlayer, szCommand, szText )
  3. {
  4. if ( szCommand == "spawned" )
  5. {
  6. MessagePlayer( "Your spawned status is - " + pPlayer.Spawned, pPlayer );
  7. }
  8. return 1;
  9. }
  10.  

Notes

The function MessagePlayer and event onPlayerCommand were used in this example. More info about them in the corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox