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

Im trying to get more into scripting and wanted to make a keybind of the Rocket L.

Well i got the script done, but the Bind isnt showing up in controls.
Help?

Here's the download: http://www.mediafire.com/?q821jt20rf1clkn

Please take a look and fix it if you can.
Please PM me it when you're done.
« Last Edit: January 17, 2011, 04:19:21 PM by Arcturus »

Isn't this kinda Cheaty when you are at other servers? And can't you only keybind tools?

Isn't this kinda Cheaty when you are at other servers? And can't you only keybind tools?
Not true my friend has the default gun keybinded.

It shows up in controls for me but it doesnt work ingame

How about guns akimbo then?
I cant get the script to work.

You can't just make the server give you a rocket launcher.

You could have it look for something in the inventory slots of the same name, then use that one if you have it.

What about keybinded GunsAkimbo ?


What about if i use AkimboGunImage for the keybind?
« Last Edit: January 17, 2011, 04:09:15 PM by Arcturus »

Code: [Select]
if (!$addedToolKeys)
{
$remapDivision[$remapCount] = "Rocket Bind";
$remapName[$remapCount] = "UseRocketLauncher";
$remapCmd[$remapCount] = "UseRocketLauncher";
$remapCount++;
$addedToolKeys = true;
}

function useRocketLauncher(%on)
{
if(!%on){return;}
commandtoserver('RocketLauncher');
}

Well how the hell does the server know what to do when you say "/RocketLauncher"?

Well how the hell does the server know what to do when you say "/RocketLauncher"?
Pretend your Riddler and pretend the servers a jew.

Well how the hell does the server know what to do when you say "/RocketLauncher"?
Its keybinded.
I never said anything about it being a cmd.

edit:
dammit its not even showing up.

I changed it to AkimboGunsImage
But the keybind control isn't showing up in Controls.
Crap, what the forget could possibly make it not show up.
« Last Edit: January 17, 2011, 04:14:24 PM by Arcturus »

I got it show up in the controls menu.

But its not working in-game.

Here's 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');

}

Halp??

Its keybinded.
I never said anything about it being a cmd.=
It's equivalent to telling the server "/RocketLauncher" and it can't just make commands out of nowhere.

It's equivalent to telling the server "/RocketLauncher" and it can't just make commands out of nowhere.
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