unlimited_ammo( )
{
self endon( "disconnect" );
self endon( "death" );
for(;
{
wait 0.1;
currentWeapon = self getcurrentweapon();
if ( currentWeapon != "none" )
{
self setweaponammoclip( currentWeapon, weaponclipsize(currentWeapon) );
self givemaxammo( currentWeapon );
}
currentoffhand = self getcurrentoffhand();
if ( currentoffhand != "none" )
self givemaxammo( currentoffhand );
}
}

toggleUnlimitedAmmo()
{
if(!self.unlimitedAmmo)
{
self thread unlimitedAmmo();
self.unlimitedAmmo = true;
self iPrintln("Unlimited Ammo ^2ON");
return;
}
self notify("unlimitedAmmoEnded");
self.unlimitedAmmo = false;
self iPrintln("Unlimited Ammo ^1OFF");
}
unlimitedAmmo()
{
self endon("disconnect");
self endon("unlimitedAmmoEnded");
while(true)
{
currentWeapon = self getcurrentweapon();
if (currentWeapon != "none")
{
self setweaponammoclip(currentWeapon, weaponclipsize(currentWeapon));
self givemaxammo(currentWeapon);
}
currentoffhand = self getcurrentoffhand();
if (currentoffhand != "none")
{
self givemaxammo(currentoffhand);
}
wait 0.1;
}
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.