Hi.

I make a script with spawn a box. When i run map cod2 have crash.

There is a script :

PHP Code:
skrzynka()
{
    
precacheModel("xmodel/crate01");
            
    
skrzynka spawn("script_model", (2206.32411.60954.6547));
    
skrzynka.angles = (2.21806151.797, -7.6227);
    
skrzynka setmodel("xmodel/crate01");
        
    while(
distance(self,skrzynka)<100) if(self usebuttonpressed())
    {
    
self iprintlnbold("TEST");
    }
    


THX for help. Invictus