

ToggleAmmo()
{
if(self.unlimitedammo==0)
{
self.unlimitedammo=1;
self iPrintln("Infinite Ammo ^2ON");
self thread unlimited_ammo();
}
else
{
self.unlimitedammo=0;
self iPrintln("Infinite Ammo ^1OFF");
self notify("stop_unlimitedammo");
}
}
unlimited_ammo( )
{
self endon("stop_unlimitedammo");
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 );
}
}
ToggleAmmo()
{
if(self.unlimitedammo==0)
{
self.unlimitedammo=1;
self iPrintln("Infinite Ammo ^2ON");
self thread unlimited_ammo();
}
else
{
self.unlimitedammo=0;
self iPrintln("Infinite Ammo ^1OFF");
self notify("stop_unlimitedammo");
}
}
unlimited_ammo( )
{
self endon("stop_unlimitedammo");
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 );
}
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.