
   /*
   * AMXMOD script.
   *
   * =======================
   *
   * IRC Action 0.1
   *  (c) Copyright 2003 by Phreak <phreak@gerald-online.de>
   *  This file is provided as is (no warranties).
   *
   * This plugin implements irc-style /me actions
   *
   */
   #include <amxmod>
   public action_check(id) {
       new said[256],name[32],check[4]
       read_argv(1,check,3)
       if (!equal(check,"/me",3))
           return PLUGIN_CONTINUE
       read_args(said,255)
       get_user_name(id,name,31)
       remove_quotes(said)
       replace(said,255,"/me ","")
       new players[32],num,i=0
       if (is_user_alive(id))
           get_players(players, num ,"ac");
       else
           get_players(players, num ,"bc");
       for (i=0;i<num;i++)
           client_print(players[i],print_chat,"%s %s",name,said)
       return PLUGIN_HANDLED
   }
   public plugin_init(){
       register_plugin("IRC Action","0.1","Phreak")
       register_clcmd("say","action_check")
       return PLUGIN_CONTINUE
   }
