Blockland Forums > Modification Help
Guns Akimbo Bind - (need help)
DrenDran:
--- Quote from: Arcturus on January 17, 2011, 04:28:35 PM ---Well here's the updated code:
--- Code: ---if (!$addedKeys)
{
$remapDivision[$remapCount] = "Guns Bind";
$remapName[$remapCount] = "Use AkimboGun";
$remapCmd[$remapCount] = "UseAkimboGun";
$remapCount++;
$addedKeys = true;
}
function useAkimboGun(%on)
{
if(!%on){return;}
commandtoserver('AkimboGunImage');
}
function serverCmdAkimboGun(%client)
{
%player = %client.player;
if(isObject(%player))
{
%player.updateArms("AkimboGunImage");
%player.mountImage("AkimboGunImage", 0);
}
}
--- End code ---
So now with that code, it should be a command.
/AkimboGun
but its not working, so i must have done something wrong
--- End quote ---
1. That code (servercmd...) would need to be on the hosts computer.
2. That's not even how you give someone an item properly.
BlockStar:
How about instead of a keybind to equipped it. Use a cmd like kalphiter was saying. But make sure to make it client sided.