Squirrel/Functions/Server/GetGamemodeName

From VC-MP Wiki

Jump to: navigation, search

This returns the name of the gamemode the server is running.

Syntax

string GetGamemodeName()


Arguments

  • None

Example

This example will show the gamemode name when a new player joins the server.

function onPlayerJoin( player )
{
     MessagePlayer( "This server is running: " + GetGamemodeName(), player );
}

Notes

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

Related Functions

squirrel scripting