Author Topic: Command keys  (Read 1437 times)

I hate manually typing /duplicator, /fillcan and /wand, etc. etc.

Any way to bind those commands to a key?

Put this in a new .cs file in Add-Ons/Client.
Code: [Select]
if (!$addedToolKeys)
{
$remapDivision[$remapCount] = "Auto Tools";
$remapName[$remapCount] = "Use Wand";
$remapCmd[$remapCount] = "useWand";
$remapCount++;
$remapName[$remapCount] = "Use Duplicator";
$remapCmd[$remapCount] = "useDupe";
$remapCount++;
$remapName[$remapCount] = "Use Fill Can";
$remapCmd[$remapCount] = "useFillCan";
$remapCount++;
$addedToolKeys = true;
}

function useWand(%on)
{
 if(!%on){return;}
 if($IamAdmin)
 {
  commandtoserver('magicwand');
 }
 else
 {
  commandtoserver('wand');
 }
}

function useDuplicator(%on)
{
 if(!%on){return;}
 commandtoserver('duplicator');
}

function useFillCan(%on)
{
 if(!%on){return;}
 commandtoserver('fillcan');
}

Go to the Options menu and set the keys for them. If you are an admin on a server, using the Wand key will give you the Destructo Wand instead of the normal one. The other keys will only work if the server actually has the duplicator/fillcan but they don't need this mod.

Space Guy,

Blockland would be nothing without your Portal Gun, bots and events.

I play Blockland, love it, and don't have the portal gun.

how do i make a cs.file?

When saving files from a plain text editor (Notepad, GEdit not Wordpad, Microsoft Word), choose to save as type All Files and then change the name of it to "File.cs" instead of "File" or "File.txt".

For noobs/lazy people I put I fixed it where you dont have to create it :D
Slap them in the main Blockland folder.

ZIP: http://www.mediafire.com/?0w1xbmxmmzp
RAR: http://www.mediafire.com/?vem3ewulgiy