
   /* AMX Mod script.
   *
   * (c) Copyright 2002-2003, OLO
   * This file is provided as is (no warranties).
   *
   * Make sure to disable anti-flood plugin during clanmatches
   * or just put this plugin before anti-flood plugin in plugins.ini
   *
   */
   #include <amxmod>
   new Float:last_chat
   new gmsgSayText
   public pcSay(id){
       new Float:gametime = get_gametime()
       if (gametime > last_chat) {
           last_chat = gametime + 0.01
           return PLUGIN_CONTINUE
       }
       new name[32], message[192]
       get_user_name(id,name,31)
       read_args(message,191)
       remove_quotes(message)
       format(message,191,"%c%s :    %s^n",2,name,message)
       message_begin( MSG_ALL ,gmsgSayText,{0,0,0},id)
       write_byte( id )
       write_string( message )
       message_end()
       return PLUGIN_HANDLED
   }
   public pcSayTeam(id){
       new Float:gametime = get_gametime()
       if (gametime > last_chat) {
           last_chat = gametime + 0.01
           return PLUGIN_CONTINUE
       }
       new team[32], name[32], message[192], players[32], inum
       get_user_team(id,team,31)
       get_players(players,inum,"e",team)
       read_args(message,191)
       remove_quotes(message)
       get_user_name(id,name,31)
       format(message,191,"%c(%s) %s :    %s^n",2,team,name,message)
       for(new a = 0; a < inum; a++){
           message_begin( MSG_ONE ,gmsgSayText,{0,0,0},players[a])
           write_byte( id )
           write_string( message )
           message_end()
       }
       return PLUGIN_HANDLED
   }
   public plugin_init(){
       register_plugin("Paused Chat","0.9.3","default")
       gmsgSayText = get_user_msgid("SayText")
       register_clcmd("say","pcSay")
       register_clcmd("say_team","pcSayTeam")
       return PLUGIN_CONTINUE
   }
