
   // Admin Teams, Copyright 2002-2003, PsychoGuard. No warranties.
   #include <amxmod>
   #include <amxmisc>
   public admin_chteam(id, level, cid) {
       if (!cmd_access(id, level, cid, 2))
           return PLUGIN_HANDLED
       new cmd[32], arg[32]
       read_argv(0,cmd,31)
       read_argv(1,arg,31)
       new player = cmd_target(id,arg,1)
       if (!player) return PLUGIN_HANDLED
       user_kill(player, 1)
       engclient_cmd(player, "chooseteam")
       engclient_cmd(player, "menuselect", (cmd[4]=='t') ?  "1" : "2" )
       engclient_cmd(player, "menuselect", "5")
       return PLUGIN_HANDLED
   }
   public plugin_init() {
       register_plugin("Admin Teams", "0.9.2", "PsychoGuard")
       register_concmd("amx_t",  "admin_chteam", ADMIN_LEVEL_A, "<authid,
   nick or #userid>")
       register_concmd("amx_ct", "admin_chteam", ADMIN_LEVEL_A, "<authid,
   nick or #userid>")
       return PLUGIN_CONTINUE
   }
