
   /* AMX Mod script.
   *
   * (c) Copyright 2002-2003, RAV
   * This file is provided as is (no warranties).
   *
   * Required: ADMIN_LEVEL_A to use this command
   *
   * Usage: amx_screen <authid, nick or #userid>
   * Screenshot will be taken and stored on client's PC
   */
   #include <amxmod>
   #include <amxmisc>
   public admin_screen(id,level,cid){
       if (!cmd_access(id,level,cid,2))
           return PLUGIN_HANDLED
       new arg[32]
       read_argv(1,arg,31)
       new player = cmd_target(id,arg,9)
       if (!player) return PLUGIN_HANDLED
       new  name[32], time[32]
       get_user_name(player,name, 31)
       get_time("%m/%d/%Y - %H:%M:%S",time,31)
       client_print(player,print_chat,"*  Screenshot  has  been  taken on
   ^"%s^" (%s)",name,time)
       client_cmd(player,"snapshot")
       console_print(id,"Screenshot    has    been    taken   on   ^"%s^"
   (%s)",name,time)
       return PLUGIN_HANDLED
   }
   public plugin_init() {
       register_plugin("Admin Screen","0.9.2","Rav")
       register_concmd("amx_screen","admin_screen",ADMIN_LEVEL_A,"<authid
   , nick or #userid>")
       //register_cvar("Rav_Adminscreen", "1.3",FCVAR_SERVER)
       return PLUGIN_CONTINUE
   }
