(This isn't the exact mod, it's just an example.)
Is there a way to combine this all into a client.cs, without the need for a server.cs, so it works on other servers without them needing it downloaded?
// client.cs
if(!$addedToolBinds)
{
$remapDivision[$remapCount] = "Tools";
$remapName[$remapCount] = "Hammer";
$remapCmd[$remapCount] = "GiveHammer";
$remapCount++;
$addedToolBinds = 1;
}
function GiveHammer(%val)
{
if(%val)
commandtoServer('GiveHammer');
}
// server.cs
function serverCmdGiveHammer(%client)
{
%player = %client.player;
%player.updateArm(hammerImage);
%player.mountImage(hammerImage,0);
}