
   /* AMX Mod script.
   *
   * (c) Copyright 2002, SuicideDog
   * Code gleemed for OLO'S Win Limit plugin
   * This file is provided as is (no warranties).
   *
   */
   #include <amxmod>
   new ct_score = 0
   new terrorist_score = 0
   new Float:last_timelimit
   new winlimit
   public change_map(){
       last_timelimit = get_cvar_float("mp_timelimit")
       set_cvar_float("mp_timelimit",0.01)
   }
   public back_timelimit()
       set_cvar_float("mp_timelimit",last_timelimit)
   public new_round(){
       winlimit = get_cvar_num("amx_skunk")
       set_hudmessage(200, 100, 0, 0.05, 0.5, 0, 6.0, 6.0, 0.5, 0.15, 4)

       if (ct_score == winlimit && terrorist_score == 0){
               set_task(4.0,"change_map")
               show_hudmessage(0,"CT's  have SKUNKED T's with score of %d
   to %d^nChanging map...",ct_score,terrorist_score)
       }
       else if (terrorist_score == winlimit && ct_score == 0){
               set_task(4.0,"change_map")
               show_hudmessage(0,"T's  have SKUNKED CT's with score of %d
   to %d^nChanging map...",terrorist_score,ct_score)
       }
       return PLUGIN_CONTINUE
   }
   public team_score(){
       new team[2]
       read_data(1,team,1)
       if (team[0]=='C')
           ct_score = read_data(2)
       else if (team[0]=='T')
           terrorist_score = read_data(2)
       return PLUGIN_CONTINUE
   }
   public plugin_init(){
       register_plugin("Skunkage","0.2","SuicideDog")
       register_event("TeamScore", "team_score", "a")
       register_event("RoundTime", "new_round", "bc")
       register_event("30", "back_timelimit", "a")
       register_cvar("amx_skunk","7")
       return PLUGIN_CONTINUE
   }
