Squirrel/Functions/Server/GetDeathmatchScoreBoard

From VC-MP Wiki

Jump to: navigation, search

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

squirrel scripting