StopFrontEndTrack

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

This function stop any soundtrack or endtrack

Syntax

  1. StopFrontEndTrack ( instance Player )

Arguments

  • Player - The player instance used

Example

Stop any Soundtrack or End track when player type /stop

  1.  
  2. function onPlayerCommand ( pPlayer, szCommand, szParams ) {
  3.  
  4. switch ( szCommand ) {
  5.  
  6. case "stop": {
  7.  
  8. StopFrontEndTrack ( pPlayer );
  9.  
  10. return;
  11. }
  12. }
  13. }
  14.  

Notes

The function PlayFrontEndTrack and call onPlayerCommand were used in in this example. More info about them in corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox