Author Topic: how to set the building mode to random colors via console?  (Read 1636 times)

Ya know the server pref that makes bricks random colors when they are placed? Well I was wondering if there was a way to switch that on and off via the console so id ont have to restart my server.

« Last Edit: June 11, 2014, 11:08:35 PM by Ninjaman 4 »

function servercmdTogColors(%cl)
{
   if(%cl.isSuperAdmin)
   {
      $Pref::Server::RandomBrickColor = !$Pref::Server::RandomBrickColor;
      messageClient(%cl,'',"\c6Random brick colors is now \c4" @ $Pref::Server::RandomBrickColor);
   }
}

function togBrickColors()
{
   $Pref::Server::RandomBrickColor = !$Pref::Server::RandomBrickColor;
   echo("Random brick colors is now " @ $Pref::Server::RandomBrickColor);
}

function servercmdTogColors(%cl)
{
   if(%cl.isSuperAdmin)
   {
      $Pref::Server::RandomBrickColor = !$Pref::Server::RandomBrickColor;
      messageClient(%cl,'',"\c6Random brick colors is now \c4" @ $Pref::Server::RandomBrickColor);
   }
}

function togBrickColors()
{
   $Pref::Server::RandomBrickColor = !$Pref::Server::RandomBrickColor;
   echo("Random brick colors is now " @ $Pref::Server::RandomBrickColor);
}

wait this is script not a console command.

$Pref::Server::RandomBrickColor = 1;
$Pref::Server::RandomBrickColor = 0;

wait this is script not a console command.
1. Copy the 'script'

2. Enter in the console (by hand or crash the game): eval(getClipBoard());

In case he is lazy..

Here is a link. https://www.dropbox.com/s/z1436ubq3gmzrd7/Script_TogColors.zip

wait this is script not a console command.
There is no console command for it, there is a pref though.