As well you could try setting a new variable instead of cvar like
PHP Code:
fun_bashtime = 1;
// and then
if(fun_bashtime == 1)
{
self setWeaponSlotAmmo("primaryb", 0);
self setWeaponSlotClipAmmo("primaryb", 0);
}
else
{
self giveMaxAmmo(self.pers["weapon"]);
}
Anyway for my own info, is there any advantage of setting a cvar over variables?