
   /* AMX Mod script.
   *
   * (c) Copyright 2003, BouBou (c) DevProd.com
   * This file is provided as is (no warranties).
   *
   * SwissGamesCave Server
   */
   #include <amxmod>
   new alliesScore,axisScore,timeleft[8]
   public saveScore(){
      if(read_data(1) == 1){
         alliesScore = read_data(2)
      }
      else if(read_data(1) == 2){
         axisScore = read_data(2)
      }
   }
   public showScore(){
      set_hudmessage(200, 200, 200,0.45, 1.0, 2, 0.1, 10.0, 0.02, 0.1, 4)
      new timeleftvar = get_timeleft()
      if (timeleftvar > 0){
         format(timeleft,7,"%d:%02d",timeleftvar / 60, timeleftvar % 60)
      }
      if(alliesScore > axisScore){
         show_hudmessage(0,"%s           min  Allies:          %d   Axis:
   %d",timeleft,alliesScore,axisScore)
      }
      else{
         show_hudmessage(0,"%s           min  Axis:          %d   Allies:
   %d",timeleft,axisScore,alliesScore)
      }
   }
   public plugin_init() {
      register_plugin("DoD ScoreProjector","0.9.3","BouBou")
      register_event("TeamScore","saveScore","a")
      set_task(300.0,"showScore",0,"",0,"b");
      return PLUGIN_CONTINUE
   }
