void main()
{
void self = getlocalvar("self");
int time = getentityproperty(self, "rush_time");
int rush = openborvariant("elapsed_time");
int xPos = 0; //BAR X POSITION
int yPos = 100; //BAR Y POSITION
int zPos = 1001; //BAR Z LAYER
int color = rgbcolor(255,255,0); //BAR COLOR
float xSize = 50; //BAR WIDTH
float ySize = 5; //BAR HEIGHT
float maxTime = 1; //MAX RUSH TIME DEFINED IN THE LEVELS.TXT. CAUTION!! MUST BE THE SAME
float countdown = time-rush; maxTime = maxTime*200; if(countdown < 0){countdown = 0;} //COUNTDOWN FORMULA
float bar = (countdown*xSize)/(maxTime); //BAR SIZE FORMULA
drawbox(xPos, yPos, bar, ySize, zPos, color);
}