new holding_fire[33];if(button & IN_ATTACK){ holding_fire[id]++;}else{ holding_fire[id]=0;}
public YourFunction(?){ if(holding_fire[player]) { // ... }}