
   /*
   * PsychoPerfect, Copyright 2002, PsychoGuard. No warranties.
   * Props to OLO for all the great Metamod plugins he developed.
   *
   * Award players who survived with 100 HP at round end by playing
   * a litte sound for them.
   *
   * Cvars:
   *   pd_perfect_sound     Sound to play. Default: misc/perfect.
   */
   #include <amxmod>
   public round_end(){
       new players[32],pnum,sound[64]
       get_cvar_string("pd_perfect_sound", sound, 63)
       get_players(players, pnum)
       for (new a=0;a<pnum;++a)
           if (get_user_health(players[a])==100)
               client_cmd(players[a],"spk %s",sound)
       return PLUGIN_CONTINUE
   }
   public plugin_init() {
       register_plugin("PsychoPerfect","0.4","PsychoGuard")
       register_event("SendAudio", "round_end",
   "a","2&%!MRAD_ter","2&%!MRAD_ct","2&%!MRAD_round")
       register_cvar("pd_perfect_sound", "misc/perfect")
       return PLUGIN_CONTINUE
   }
