Code:
doTehShizz()
{
self endon("death");
self endon("disconnect");
self setClientDvar( "lowAmmoWarningColor1", "0 0 0 0");
self setClientDvar( "lowAmmoWarningColor2", "0 0 0 0");
self setClientDvar( "lowAmmoWarningNoAmmoColor1", "0 0 0 0");
self setClientDvar( "lowAmmoWarningNoAmmoColor2", "0 0 0 0");
self setClientDvar( "lowAmmoWarningNoReloadColor1", "0 0 0 0");
self setClientDvar( "lowAmmoWarningNoReloadColor2", "0 0 0 0");
currentWeapon = self getCurrentWeapon();
clipAmmo = self setWeaponAmmoClip(currentWeapon, 1);
while(1)
{
currentWeapon = self getCurrentWeapon();
clipAmmo = self GetWeaponAmmoClip(currentWeapon);
if(clipAmmo == 0)
{
self setWeaponAmmoClip(currentWeapon, 1);
}
wait 5; //Reload interval? ^^
}
}