
   /* AMX Mod script.
   *
   * (c) Copyright 2002-2003, OLO
   * This file is provided as is (no warranties).
   *
   * Slay losing team when:
   * o CT defuse the bomb (de_ map)
   * o CT save the target (de_ map)
   * o T destroy the target (de_ map)
   * o CT rescue hostage (cs_ map)
   * o T prevent from hostage rescue (cs_ map)
   */
   #include <amxmod>
   public plugin_init(){
       register_plugin("Team Objectives","0.9","default")
       register_event("SendAudio","delayslay","a","2=%!MRAD_terwin","2=%!
   MRAD_ctwin")
   }
   public delayslay(){
       new param[32]
       new len = read_data(2,param,31)
       set_task(1.0,"slaylosers",0,param, len + 1)
   }
   public slaylosers(param[]) {
       new players[32], playersnum
       get_players(players,playersnum,"ea",(param[7]  ==  't')  ?  "CT" :
   "TERRORIST" )
       for(new a = 0; a < playersnum; ++a)
           user_kill(players[a])
       if (playersnum)
           client_print(0,print_center,"Killing losing team!!!")
   }
