
   /*
   * AMX Mod script.
   *
   * (c) Copyright 2003, bardelot
   * This file is provided as is (no warranties).
   */
   #include <amxmod>
   new g_rndTime
   public rndTimer()
   {
       set_cvar_num( "mp_c4timer" , g_rndTime = random_num(20,55) )
   }
   public annBomb()
   {
       set_hudmessage(220,80,0,  0.05,  0.50, 2, 0.1, 4.0, 0.02, 0.02, 4)
       show_hudmessage(0,"C4 Timer set to %d seconds", g_rndTime )
       client_print(0,print_chat,"C4  Timer set to %d seconds", g_rndTime
   )
   }
   public plugin_init()
   {
       register_plugin("Random C4 Timer", "0.3", "bardelot")
       new mapname[4]
       get_mapname(mapname,3)
       if ( !equali(mapname,"de_",3) ){
           pause("a")
           return PLUGIN_CONTINUE
       }
       register_event("SendAudio", "annBomb", "a", "2&%!MRAD_BOMBPL")
       register_event("SendAudio",            "rndTimer",            "a",
   "2&%!MRAD_terwin","2&%!MRAD_ctwin","2&%!MRAD_rounddraw")
       register_event("TextMsg","rndTimer","a","2&#Game_C","2&#Game_w")
       return PLUGIN_CONTINUE
   }
