Squirrel/Functions/Server/SetDeathmatchScoreBoard

From VC-MP Wiki

Jump to: navigation, search

This function enables or disables the deathmatch scoreboard.

Syntax

bool SetDeathmatchScoreBoard( bool bEnabled )

Arguments

  • true - Enables the Deathmatch score board.
  • false - Disables the Deathmatch score board.

Example

This example enables the deathmatch scoreboard when the server is started.

function onServerStart()
{
     SetDeathmatchScoreBoard( true );
     //To enable Deathmatch score board.
}

or

function onServerStart()
{
     SetDeathmatchScoreBoard( false );
     //To disable Deathmatch score board.
}

Notes

The call onServerStart was used in in this example. More info about it in the corresponding page.

Related Functions

squirrel scripting