Squirrel/Functions/Server/GetGamemodeName
From VC-MP Wiki
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
- GetServerName
- SetServerName
- GetGamemodeName
- SetGamemodeName
- GetMapName
- SetMapName
- GetPassword
- SetPassword
- GetMaxPlayers
- SetMaxPlayers
- GetPlayers
- GetDeathmatchScoreBoard
- SetDeathmatchScoreBoard
- GetDeathMessages
- SetDeathMessages
- GetDrivebyEnabled
- SetDrivebyEnabled
- GetFallEnabled
- SetFallEnabled
- GetDriveOnWater
- SetDriveOnWater
- GetFlyingCars
- SetFlyingCars
- GetTaxiBoostJump
- SetTaxiBoostJump
- SetWeaponDamage
- GetSkinEnabledForPlayer
- SetSkinEnabledForPlayer
