GetGamemodeName

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

This function returns the name of the gamemode.

Syntax

  1. string GetGamemodeName()

Arguments

  • None

Example

This example will print some info about the server to the console when the server is started.

  1.  
  2. function onServerStart()
  3. {
  4. print( "Server name: " + GetServerName() );
  5. print( "Gamemode: " + GetGamemodeName() );
  6. print( "Map: " + GetMapName() );
  7. print( "MTU size: " + GetMTUSize() );
  8. return 1;
  9. }
  10.  

Notes

The functions print, GetServerName, GetMTUSize, GetMapName and call onServerStart were used in this example. More info about them can be found in corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox