
   /* AMX Mod script.
   *
   * (c) Copyright 2002-2003, f117bomb
   * This file is provided as is (no warranties).
   *
   */
   #include <amxmod>
   #include <amxmisc>
   /*
   * amx_stack <authid, nick or #userid> [0|1|2]
   */
   public admin_stack(id,level,cid){
      if (!cmd_access(id,level,cid,2))
         return PLUGIN_HANDLED

      new arg[32], name2[32]
      read_argv(1,arg,31)
      get_user_name(id,name2,31)
      new player = cmd_target(id,arg,7)
      if (!player) return PLUGIN_HANDLED

      new sttype[2], name[32], origin[3], inum, players[32]
      read_argv(2,sttype,1)
      get_user_origin(player, origin)
      get_players(players,inum,"a")

      new offsety = 36, offsetz = 96
      switch( strtonum(sttype) ){
         case 0: offsety = 0
         case 1: offsetz = 0
      }

      for(new a=0 ;a<inum ; ++a) {
         if ((players[a]==player) ||
   (get_user_flags(players[a])&ADMIN_IMMUNITY) )
            continue
         origin[2] += offsetz
         origin[1] += offsety
         set_user_origin(players[a], origin)
      }

      get_user_name(player,name,32)
      switch(get_cvar_num("amx_show_activity"))    {
             case  2:    client_print(0,print_chat,"ADMIN %s: stacked all
   players on %s",name2,name)
             case   1:    client_print(0,print_chat,"ADMIN:  stacked  all
   players on %s",name)
      }
      console_print(id,"Client  ^"%s^" has had all players stacked on top
   of him",name)
      return PLUGIN_HANDLED
   }
   public plugin_init() {
      register_plugin("Admin Stack","0.9.3","f117bomb")
      register_concmd("amx_stack","admin_stack",ADMIN_LEVEL_A,"<authid,
   nick or #userid> [0|1|2]")
      return PLUGIN_CONTINUE
   }
