Hi everyone !
So... New trouble. I added to my mod, something like a "bash time" on end of map, nobody have ammo.
Callback_StartGameType()
PHP Code:setCvar("fun_bashtime", "0");
SpawnPlayer()
PHP Code:self giveWeapon(self.pers["weapon"]);
self setSpawnWeapon(self.pers["weapon"]);
if(getCvar("fun_bashtime") == 1)
{
self setWeaponSlotAmmo("primaryb", 0);
self setWeaponSlotClipAmmo("primaryb", 0);
}
if(getCvar("fun_bashtime") == 0)
{
self giveMaxAmmo(self.pers["weapon"]);
}
checkTimeLimit()
PHP Code:if(secondsleft == 180)
{
setCvar("fun_bashtime", "1");
I allways have ammo. Why not work? No comment my wayps. sry for english :>

 
			
			 
				 Problem with "if(getCvar" function
 Problem with "if(getCvar" function
				
 
					
					
					
						 Reply With Quote
Reply With Quote Originally Posted by YuriJurek
 Originally Posted by YuriJurek
					
