
   /* amx_drugged
   *
   * [SpecEd] UID Zero - sirnaof@hotmail.com
   *
   *  This code is not mine.  It originally came from ATAC and Admin Slap
   2.
   * I just combined them into what I wanted.
   *
   *  I  also  don't  guarantee  that  this will work.  It may break your
   server.
   * Either way, it's not my problem, so don't complain to me.
   */
   #include <amxmod>
   #include <amxmisc>
   new gmsgSetFOV
   public drug_player(player){
     if(is_user_alive(player)){
       message_begin(MSG_ONE, gmsgSetFOV, {0, 0, 0}, player)
       write_byte(170)
       message_end()
     }
   }
   public drug(id, level, cid){
     if(!cmd_access(id,level,cid,2))
       return PLUGIN_HANDLED
     new arg[32]
     read_argv(1, arg, 31)
     if(arg[0] == '@'){
       new players[32], inum, name[32]
       get_players(players, inum, "ae", arg[1])
       if(inum == 0){
         return PLUGIN_HANDLED
       }
       for(new a = 0; a < inum; ++a){
         if(get_user_flags(players[a]) & ADMIN_IMMUNITY){
           console_print(id,   "Skipping   ^"%s^"   because   client  has
   immunity", name)
           continue
         }
         drug_player(players[a])
       }
     }
     else{
       new player = cmd_target(id, arg, 5)
       if(!player) return PLUGIN_HANDLED
       drug_player(player)
     }
     return PLUGIN_HANDLED
   }
   public plugin_init(){
     register_plugin("Drugged", "1.0", "[SpecEd] UID Zero")
     register_concmd("amx_drugged",  "drug",  ADMIN_SLAY, "<authid, nick,
   @team or #userid>")
     gmsgSetFOV = get_user_msgid("SetFOV")
     return PLUGIN_CONTINUE
   }
