чтобы не было потронов больше  global.maxpl=50 ; 
 if global.pl>=global.maxpl global.pl=global.maxpl; 
 чтобы не уничтажался объект потронов 
 if global.pl>global.maxpl {} 
 else { 
 global.pl+=24; 
 instance_destroy();} 
 чтобы не мог стрелять когда патронов нет 
 if global.pl<=0 { 
 global.pl=0; 
 can_shoot=false;} 
 else { 
 can_shoot=true;} 
 if mouse_chek_pressed(mp_left) and can_shoot=true { 
 var bullet; 
 bullet=instanse_nearset(bullet); 
 bullet.direction=hero.direction; 
 speed.bullet=20; 
 } 
 ну вроде бы все