Blockland Forums > Modification Help
"/" command help
<< < (5/7) > >>
DrenDran:

--- Code: ---function servercmdtoggle(%client)
{
$a = !$a;
}

--- End code ---
toggletoggletoggle


--- Code: ---$a = 0;
function servercmdtoggleup(%client)
{
$a++;
if($a>8)
$a = 0;
}

$a = 0;
function servercmdtoggledown(%client)
{
$a--;
if($a<0)
$a = 8;
}

--- End code ---

toggletoggletoggle from 0 to 8
Baeshra:
Once again I'm sorry for being noobish but how would I make it so a line of code would only execute if a variable was equal to 1?
Fluff-is-back:

--- Code: ---if($variable)
{
      //code to execute
}

--- End code ---
Baeshra:
Thanks, testing now.
SpreadsPlague:

--- Quote from: Baeshra on January 07, 2011, 08:10:47 PM ---Thanks, testing now.

--- End quote ---

why are you trying to use / commands for a clientsided script, especially this one?

you need keybinds.
Navigation
Message Index
Next page
Previous page

Go to full version