Author Topic: Guns Akimbo Bind - (need help)  (Read 1845 times)

Clients can't tell the server what to do.
Only the printer can be equipped clientside, I believe.

Clients can't tell the server what to do.
Only the printer can be equipped clientside, I believe.
/usehammer is admin only

What about the Tool Binds?
They tell the server to give the client the Wand, Duplicator, Fill can.
Why not Guns Akimbo though?
Whats causing it not to work, Can someone advanced with this fix the code?

They tell the server to give the client the Wand, Duplicator, Fill can.
Not if the wand is disabled, or if the duplicator or fillcans don't exist. For those three, it sends a command to the server asking if the client can use them. As for the Printer, the client doesn't give a forget about what the server thinks/



This happened after i added
Package Guns
ActivatePackage(Guns);

I dont understand the ##'s

watdo?



package Guns
{   <- You forgot this
 %stufftingaround = %insideapackage;
};  <- And this
activatepackage(Guns);

funny how that works out

also, this will only work on your server you know, on everybody elses it will still be broken and do squat
the tool binds only work because there's a command for them
ie, /usehammer, /useprinter, /fillcan, /duplicator

Well here's the updated code:

Code: [Select]
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);
}
}

So now with that code, it should be a command.

/AkimboGun
but its not working, so i must have done something wrong
1. That code (servercmd...) would need to be on the hosts computer.
2. That's not even how you give someone an item properly.

How about instead of a keybind to equipped it. Use a cmd like kalphiter was saying. But make sure to make it client sided.