
   /* AMX Mod Script
   *
   * (c) Copyright 2003, Gorillaz
   * This file is provided as is (no warranties)
   */
   #include <amxmod> //includes module amxmod
   #include <amxmisc> //includes module amxmisc
   new logfilename[256]
   public plugin_init() {
       register_plugin("Drop  Weapon","0.1.1","default")  //registers the
   plugin
       register_clcmd("amx_drop","amx_drop") //registers the command
       return PLUGIN_CONTINUE
   }
   public amx_drop(id,level,cid) {
       if  (!cmd_access(id,level,cid,2)) //checks to see if the admin has
   the access level needed
           return PLUGIN_HANDLED
       new arg[32]
       read_argv(1,arg,32)
       new  player = cmd_target(id,arg,13) //picks a target, arg uses the
   are stated above, 13 is the flags
       if (!player) return PLUGIN_HANDLED
       client_cmd(player, "drop") //what the command does, client command
   player = target selected and command is drop
       new authid[16],name2[32],authid2[16],name[32]
       get_user_authid(id,authid,15)
       get_user_name(id,name,31)
       get_user_authid(player,authid2,15)
       get_user_name(player,name2,31)
       switch(get_cvar_num("amx_show_activity"))    { //checks a cvar and
   selects the options below in different cases
       case 2:    client_print(0,print_chat,"ADMIN %s: Forced drop weapon
   %s",name,name2)
       case  1:    client_print(0,print_chat,"ADMIN:  Forced  drop weapon
   %s",name2)
       }
       console_print(id,"Client  ^"%s^" Forced drop weapon",name2) //what
   is put in the console
       return PLUGIN_HANDLED
   }
