Hey,
Made by request.
No ammo for secondary weapon. ( Useful for sniper servers ).
SOURCE
noammo.zip (Size: 1.84 KB / Downloads: 86)
Credits:
@jaydi - coded
@ALEXFDR - idea
Made by request.
No ammo for secondary weapon. ( Useful for sniper servers ).
SOURCE
Code:
using Addon;
using System.Collections.Generic;
namespace noammo
{
public class noammos : CPlugin
{
public override void OnAddonFrame()
{
// to prevent errors
List<ServerClient> clients = new List<ServerClient>();
if (clients != null && clients.Count > 0)
{
foreach (ServerClient cl in GetClients())
{
if (cl != null)
{
cl.Ammo.SecondaryAkimboAmmo = 0;
cl.Ammo.SecondaryAmmo = 0;
cl.Ammo.SecondaryAmmoClip = 0;
}
}
}
}
}
}
noammo.zip (Size: 1.84 KB / Downloads: 86)
Credits:
@jaydi - coded
@ALEXFDR - idea