Squirrel/Functions/Server/GetDeathmatchScoreBoard
From VC-MP Wiki
This function returns whether the deathmatch scoreboard has been enabled or not.
Syntax
bool GetDeathmatchScoreBoard()
Arguments
- None
Example
This example tells the player whether the server has deathmatch scoreboard enabled when they type '/c scoreb'.
function onPlayerCommand( player, cmd, text ) { if ( cmd == "scoreb" ) { if ( GetDeathmatchScoreBoard() ) MessagePlayer( "This server has enabled the deathmatch scoreboard.", player ); else MessagePlayer( "This server has disabled the deathmatch scoreboard.", player ); } }
Notes
The function MessagePlayer and call onPlayerCommand were used in in this example. More info about them in the 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
