Hello, I am 99IRock.
I really want a plugin, that makes it possible to make classes for specific persons on specific teams (And also on specifics maps)
Because I want to use infected, and so my friends get another weapon on start than other people.
Also for special people I want an ACR akimbo...
Is this possible an ACR akimbo?
Maybe someone can give me the code, and than I can figure out myself.
thanks
OKAY: So after training and getting help from people, like @Sailormoon and @JariZ (Not with coding but he helped me here with a little begin ) and more people(I need to seek the names)
The code below can we use in different cases. in this case we use Onsay so if a player says the message !akimboacr he will receive an akimbo acr.
Why Primary & Secondary & Current weapon ?
Well there is a bug with akimbo guns (The akimbo who are normally not possible in the game)
If you switch from gun, it will be bugged and than you can't shoot anymore.
So if you set all guns to the same gun, you can't switch from weapon (Thanks @sailormoon for the Primary & Secondary idea)
Why Primary & Secondary akimbo?
Well you don't know if you are on the primary weapon slot or secondary weapon slot.
That's why we just set both to akimbo
KNOWN BUGS:
When you call in a carepackage, you can't shoot anymore
When you go over a fence (Press space to go over), you can't shoot anymore.
If you take another gun, and switch to it it will be akimbo.(FIX by @sailormoon)!
And if you have a spass you can't shoot anymore, because the spass is not able to use as akimbo gun.
http://www.itsmods.com/forum/Thread-Rele...n-fix.html
I use the code and give some info about it (Sailormoon already did but just to make it complete)
For the ACR akimbo we use
int akimbo = GetWeapon("iw5_acr_mp_silencer_camo09"); // The acr gun
I hope this will help beginners.
Enjoy making akimbo guns!
I really want a plugin, that makes it possible to make classes for specific persons on specific teams (And also on specifics maps)
Because I want to use infected, and so my friends get another weapon on start than other people.
Also for special people I want an ACR akimbo...
Is this possible an ACR akimbo?
Maybe someone can give me the code, and than I can figure out myself.
thanks
OKAY: So after training and getting help from people, like @Sailormoon and @JariZ (Not with coding but he helped me here with a little begin ) and more people(I need to seek the names)
The code below can we use in different cases. in this case we use Onsay so if a player says the message !akimboacr he will receive an akimbo acr.
Code:
public override ChatType OnSay(String Message, ServerClient Client, bool Teamchat)
{
if (Message == "!akimboacr")
{
int AkimboWeaponID = GetWeapon("iw5_acr_mp_silencer_camo09"); // Akimbo weapon.
Client.Other.PrimaryWeaponAkimbo = true; //Primary weapon set to akimbo
Client.Other.SecondaryWeaponAkimbo = true; //Secondary weapon set to akimbo
Client.Other.PrimaryWeapon = AkimboWeaponID; // Your Primary weapon will be the acr (AkimboWeaponID)
Client.Other.SecondaryWeapon = AkimboWeaponID; // Your Secondary weapon will be the acr (AkimboWeaponID)
Client.Other.CurrentWeapon = AkimboWeaponID; // Your current weapon will be the acr (AkimboWeaponID)
Client.Ammo.PrimaryAmmoClip = +1000; // Gives primary +1000 ammo
Client.Ammo.SecondaryAmmoClip = +1000; // Gives secondary +1000 ammo
}
}
Well there is a bug with akimbo guns (The akimbo who are normally not possible in the game)
If you switch from gun, it will be bugged and than you can't shoot anymore.
So if you set all guns to the same gun, you can't switch from weapon (Thanks @sailormoon for the Primary & Secondary idea)
Why Primary & Secondary akimbo?
Well you don't know if you are on the primary weapon slot or secondary weapon slot.
That's why we just set both to akimbo
KNOWN BUGS:
When you call in a carepackage, you can't shoot anymore
When you go over a fence (Press space to go over), you can't shoot anymore.
If you take another gun, and switch to it it will be akimbo.(FIX by @sailormoon)!
And if you have a spass you can't shoot anymore, because the spass is not able to use as akimbo gun.
http://www.itsmods.com/forum/Thread-Rele...n-fix.html
I use the code and give some info about it (Sailormoon already did but just to make it complete)
For the ACR akimbo we use
int akimbo = GetWeapon("iw5_acr_mp_silencer_camo09"); // The acr gun
Code:
public override void OnPlayerChangeWeapon(ServerClient Client, int WeaponID)
{
int akimbo = GetWeapon("iw5_acr_mp_silencer_camo09");//You put your gun here, in this case we use the ACR
if (WeaponID == akimbo)
{
Client.Other.PrimaryWeaponAkimbo = true; // PrimaryWeapon akimbo will be set to true, that means you get akimbo on primary weapon
}
Else
{
Client.Other.PrimaryWeaponAkimbo = false; // PrimaryWeapon akimbo will be set to false, that means your akimbo will be removed on primary weapon
}
}
I hope this will help beginners.
Enjoy making akimbo guns!