ItsMods

Full Version: no ammo for infected gamemode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i need an plugin to remove the ammo of the usp for the infected people pls help me
(08-11-2013, 17:26)ExoGamer* Wrote: [ -> ]i need an plugin to remove the ammo of the usp for the infected people pls help me

you doesnt need any plugin ^^ you can only change this in the class editor in mw3 ;D go into online then to priavate match then you configurate all you want then you have to save on pc and it work .. choose as modi infected and all is good Big Grin
Er specifically don't select any classes for the infected (as in put the usp as secondary).
(08-11-2013, 17:26)ExoGamer* Wrote: [ -> ]i need an plugin to remove the ammo of the usp for the infected people pls help me

this should work...

Code:
using System;
using Addon;
using System.Threading;
namespace NoAmmo
{
    public class NoAmmo : CPlugin
    {
        public override void OnPlayerSpawned(ServerClient Client)
        {
            if (Client.Team == Teams.Axis)
            {
                Client.Ammo.SecondaryAmmo = 0;
                Client.Ammo.SecondaryAmmoClip = 0;
                Client.Ammo.PrimaryAmmo = 0;
                Client.Ammo.PrimaryAmmoClip = 0;
                Client.Ammo.OffhandAmmo = 0;
            }
        }
    }
}

its only for team Axis = infected team!
A plugin is not even needed for this ffs
lol Threading
(08-12-2013, 00:27)hillbilly Wrote: [ -> ]lol Threading

Adding the System.Threading namespace doesn't mean that the plugin contains threading.

Just don't add any weapon to the infected class and it will give you a usp45 without ammo.
yes i fix it Big Grin
Genius!