I found it unnecessery, but i wrote the script (based on sd):
PHP Code:
// .......
if(!isdefined(other.progressbar))
{
other.progressbar = newClientHudElem(other);
other.progressbar.x = int(level.barsize / (-2.0));
if(level.splitscreen)
other.progressbar.y = 70;
else
other.progressbar.y = 104;
other.progressbar.alignX = "left";
other.progressbar.alignY = "middle";
other.progressbar.horzAlign = "center_safearea";
other.progressbar.vertAlign = "center_safearea";
}
other.progressbar setShader("white", 0, 8);
other.progressbar scaleOverTime(level.planttime, level.barsize, 8);
// I added these lines ---->
if(!isdefined(other.progresstime))
{
other.progresstime = newClientHudElem(other);
other.progresstime.x = int(level.barsize / (-2.0));
other.progresstime.y = 80;
other.progresstime.alignX = "left";
other.progresstime.alignY = "middle";
other.progresstime.horzAlign = "center_safearea";
other.progresstime.vertAlign = "center_safearea";
}
other.progresstime setTenthsTimer(level.planttime);
// <----
other playsound("MP_bomb_plant");
other linkTo(self);
other disableWeapon();
self.progresstime = 0;
while(isAlive(other) && other useButtonPressed() && (self.progresstime < level.planttime))
{
self.progresstime += 0.05;
wait 0.05;
}
// .......
And do not forget destroy the hud!