
   /*
   Jedi Mind Controll beta2
   AssKicR
   2003
   */
   #include <amxmod>
   #include <amxmisc>
   #include <Vexd_Utilities>
   /*
     CHANGELOG
     =========
     beta1            Public Release
     beta2            Fixed Lots of bugs
     CREDITS
     =======
     Blunted1  for  annoying  the  hell  out of me since day1 of creation
   prossess
     REQUIREMENTS
     ============
       METAMOD PLUGINS
       ===============
       Eye  -  Found  here - http://hullu.xtragaming.com/plugins.html#eye
   (optional, but recomended)

     COMMANDS
     ========
     amx_mindcontrol    - Controll a victim
     amx_stopcontrol    -  Stop  controll  of  victim (ENTER if CANSEL is
   defined)
     amx_jedibind        - Binds buttons to Controll mode
     amx_unjedibind    - Restores buttons in config.cfg
     amx_jediwtf        - Resets keys to default
     INSTALLATION
     ============
     1) Put compiled Jedi_mindcontroll.amx in your amx/plugins directory.
     2) To amx/plugins/plugins.ini, add a line containing
         "Jedi_mindcontroll.amx ", but without the quotes.
     3) Change Map or restart server
     4) Have fun!
       - AssKicR
   */
   //=============================================
   //FEEL FREE TO CHANGE THE STUFF BELOW THIS LINE
   //=============================================
   #define EYE
   //#define ROPE
   //#define HOOK
   #define CANCEL
   #define JEDI ADMIN_LEVEL_A
   //=============================================
   //FEEL FREE TO CHANGE THE STUFF ABOVE THIS LINE
   //=============================================
   new g_IsMindCont[1]
   new g_IsController[1]
   new bool:Mindcontrolling = false
   public jedi_forward(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+forward")
       return PLUGIN_CONTINUE
   }
   public jedi_sforward(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-forward")
       return PLUGIN_CONTINUE
   }
   public jedi_back(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+back")
       return PLUGIN_CONTINUE
   }
   public jedi_sback(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-back")
       return PLUGIN_CONTINUE
   }
   public jedi_lookup(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+lookup")
       return PLUGIN_CONTINUE
   }
   public jedi_slookup(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-lookup")
       return PLUGIN_CONTINUE
   }
   public jedi_lookdown(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+lookdown")
       return PLUGIN_CONTINUE
   }
   public jedi_slookdown(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-lookdown")
       return PLUGIN_CONTINUE
   }
   public jedi_left(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+moveleft")
       return PLUGIN_CONTINUE
   }
   public jedi_sleft(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-moveleft")
       return PLUGIN_CONTINUE
   }
   public jedi_right(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+moveright")
       return PLUGIN_CONTINUE
   }
   public jedi_sright(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-moveright")
       return PLUGIN_CONTINUE
   }
   public jedi_attack(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+attack")
       return PLUGIN_CONTINUE
   }
   public jedi_sattack(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-attack")
       return PLUGIN_CONTINUE
   }
   public jedi_attacktwo(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+attack2")
       return PLUGIN_CONTINUE
   }
   public jedi_sattacktwo(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-attack2")
       return PLUGIN_CONTINUE
   }
   public jedi_jump(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+jump")
       return PLUGIN_CONTINUE
   }
   public jedi_sjump(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-jump")
       return PLUGIN_CONTINUE
   }
   public jedi_duck(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+duck")
       return PLUGIN_CONTINUE
   }
   public jedi_sduck(id){
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-duck")
       return PLUGIN_CONTINUE
   }
   public jedi_reload(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+reload")
       return PLUGIN_CONTINUE
   }
   public jedi_sreload(id){
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-reload")
       return PLUGIN_CONTINUE
   }
   public jedi_use(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+use")
       return PLUGIN_CONTINUE
   }
   public jedi_suse(id){
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-use")
       return PLUGIN_CONTINUE
   }
   public jedi_speed(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+speed")
       return PLUGIN_CONTINUE
   }
   public jedi_sspeed(id){
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-speed")
       return PLUGIN_CONTINUE
   }
   public jedi_slot1(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"slot1")
       return PLUGIN_CONTINUE
   }
   public jedi_slot2(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"slot2")
       return PLUGIN_CONTINUE
   }
   public jedi_slot3(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"slot3")
       return PLUGIN_CONTINUE
   }
   public jedi_slot4(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"slot4")
       return PLUGIN_CONTINUE
   }
   public jedi_slot5(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"slot5")
       return PLUGIN_CONTINUE
   }
   public jedi_slot6(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"slot6")
       return PLUGIN_CONTINUE
   }
   public jedi_slot7(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"slot7")
       return PLUGIN_CONTINUE
   }
   public jedi_slot8(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"slot8")
       return PLUGIN_CONTINUE
   }
   public jedi_slot9(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"slot9")
       return PLUGIN_CONTINUE
   }
   public jedi_slot10(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"slot10")
       return PLUGIN_CONTINUE
   }
   public jedi_drop(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"drop")
       return PLUGIN_CONTINUE
   }
   public jedi_nightvision(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"nightvision")
       return PLUGIN_CONTINUE
   }
   public jedi_lastinv(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"lastinv")
       return PLUGIN_CONTINUE
   }
   public jedi_cancelselect(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"cancelselect")
       return PLUGIN_CONTINUE
   }
   public jedi_radio1(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"radio1")
       return PLUGIN_CONTINUE
   }
   public jedi_radio2(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"radio2")
       return PLUGIN_CONTINUE
   }
   public jedi_radio3(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"radio3")
       return PLUGIN_CONTINUE
   }
   public jedi_tleft(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+left")
       return PLUGIN_CONTINUE
   }
   public jedi_stleft(id){
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-left")
       return PLUGIN_CONTINUE
   }
   public jedi_tright(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"+right")
       return PLUGIN_CONTINUE
   }
   public jedi_stright(id){
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"-right")
       return PLUGIN_CONTINUE
   }
   public jedi_invnext(id) {
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"invnext")
       return PLUGIN_CONTINUE
   }
   public jedi_invprev(id){
       if (!Mindcontrolling) return PLUGIN_HANDLED
       if (g_IsController[0]!=id) return PLUGIN_HANDLED
       new victim[4]; // # + (max 2 digit number) + '\0'
       format( victim, 3, "#%d", g_IsMindCont[0] );
       client_cmd(victim[3],"invprev")
       return PLUGIN_CONTINUE
   }
   #if defined(ROPE)
       public jedi_rope(id) {
           if (!Mindcontrolling) return PLUGIN_HANDLED
           if (g_IsController[0]!=id) return PLUGIN_HANDLED
           new victim[4]; // # + (max 2 digit number) + '\0'
           format( victim, 3, "#%d", g_IsMindCont[0] );
           client_cmd(victim[3],"+rope")
           return PLUGIN_CONTINUE
       }
       public jedi_srope(id){
           if (!Mindcontrolling) return PLUGIN_HANDLED
           if (g_IsController[0]!=id) return PLUGIN_HANDLED
           new victim[4]; // # + (max 2 digit number) + '\0'
           format( victim, 3, "#%d", g_IsMindCont[0] );
           client_cmd(victim[3],"-rope")
           return PLUGIN_CONTINUE
       }
   #endif
   #if defined(HOOK)
       public jedi_hook(id) {
           if (!Mindcontrolling) return PLUGIN_HANDLED
           if (g_IsController[0]!=id) return PLUGIN_HANDLED
           new victim[4]; // # + (max 2 digit number) + '\0'
           format( victim, 3, "#%d", g_IsMindCont[0] );
           client_cmd(victim[3],"+hook")
           return PLUGIN_CONTINUE
       }
       public jedi_shook(id){
           if (!Mindcontrolling) return PLUGIN_HANDLED
           if (g_IsController[0]!=id) return PLUGIN_HANDLED
           new victim[4]; // # + (max 2 digit number) + '\0'
           format( victim, 3, "#%d", g_IsMindCont[0] );
           client_cmd(victim[3],"-hook")
           return PLUGIN_CONTINUE
       }
   #endif
   //********************************************************************
   **********************************
   public jedi_mindcontrol(id,level,cid) {
   if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED
   if (g_IsMindCont[0]!=0) {
   new player_name[32]
   get_user_name(g_IsMindCont[0],player_name,31)
   client_print(id,print_console,"[MINDCONTROL  ACTIVE] %s is under admin
   control already",player_name)
   return PLUGIN_HANDLED
   }
   new arg[33]
   read_argv(1, arg, 32)
   new player_id = cmd_target(id, arg, 1)
   if (!player_id) return PLUGIN_HANDLED
   if (player_id==id) return PLUGIN_HANDLED
   new player_name[32]
   get_user_name(player_id,player_name,31)
   client_print(id,print_console,"[MINDCONTROL  ACTIVATED]  %s  is  under
   your control",player_name)
   Mindcontrolling=true
   g_IsMindCont[0]=player_id
   g_IsController[0]=id
   jedi_bind(g_IsController[0])
   #if defined(EYE)
       new cmd[36]
       format(cmd, 35, "eye %s", player_name)
       client_cmd(g_IsController[0],cmd)
   #endif
   return PLUGIN_CONTINUE
   }
   //********************************************************************
   **********************************
   public jedi_bind(id) {
   client_print(g_IsController[0],print_console,"[MINDCONTROL  ACTIVATED]
   Rebinding keys")
   client_cmd(g_IsController[0],"bind w +jforward")
   client_cmd(g_IsController[0],"bind s +jback")
   client_cmd(g_IsController[0],"bind a +jleft")
   client_cmd(g_IsController[0],"bind d +jright")
   client_cmd(g_IsController[0],"bind mouse1 +jattack")
   client_cmd(g_IsController[0],"bind mouse2 +jattack2")
   client_cmd(g_IsController[0],"bind SPACE +jjump")
   client_cmd(g_IsController[0],"bind CTRL +jduck")
   client_cmd(g_IsController[0],"bind 1 jslot1")
   client_cmd(g_IsController[0],"bind 2 jslot2")
   client_cmd(g_IsController[0],"bind 3 jslot3")
   client_cmd(g_IsController[0],"bind 4 jslot4")
   client_cmd(g_IsController[0],"bind 5 jslot5")
   client_cmd(g_IsController[0],"bind 6 jslot6")
   client_cmd(g_IsController[0],"bind 7 jslot7")
   client_cmd(g_IsController[0],"bind 8 jslot8")
   client_cmd(g_IsController[0],"bind 9 jslot9")
   client_cmd(g_IsController[0],"bind 0 jslot10")
   client_cmd(g_IsController[0],"bind r +jreload")
   client_cmd(g_IsController[0],"bind e +juse")
   client_cmd(g_IsController[0],"bind g jdrop")
   client_cmd(g_IsController[0],"bind q jlastinv")
   client_cmd(g_IsController[0],"bind SHIFT +jspeed")
   client_cmd(g_IsController[0],"bind n jnightvision")
   client_cmd(g_IsController[0],"bind ESCAPE jcancelselect")
   client_cmd(g_IsController[0],"bind z jradio1")
   client_cmd(g_IsController[0],"bind x jradio2")
   client_cmd(g_IsController[0],"bind c jradio3")
   client_cmd(g_IsController[0],"bind UPARROW +jlookup")
   client_cmd(g_IsController[0],"bind DOWNARROW +jlookdown")
   client_cmd(g_IsController[0],"bind LEFTARROW +jtleft")
   client_cmd(g_IsController[0],"bind RIGHTARROW +jtright")
   client_cmd(g_IsController[0],"bind MWHEELDOWN jinvnext")
   client_cmd(g_IsController[0],"bind MWHEELUP jinvprev")
   #if defined(ROPE)
       client_cmd(g_IsController[0],"bind v +jrope")
   #endif
   #if defined(HOOK)
       client_cmd(g_IsController[0],"bind v +jhook")
   #endif
   #if defined(CANCEL)
       client_cmd(g_IsController[0],"bind ENTER amx_stopcontrol")
   #endif
   }
   public jedi_wtf(id) {
   client_print(id,print_console,"[MINDCONTROL   DEACTIVATED]   Rebinding
   keys")
   client_cmd(id,"bind w +forward")
   client_cmd(id,"bind s +back")
   client_cmd(id,"bind a +moveleft")
   client_cmd(id,"bind d +moveright")
   client_cmd(id,"bind mouse1 +attack")
   client_cmd(id,"bind mouse2 +attack2")
   client_cmd(id,"bind SPACE +jump")
   client_cmd(id,"bind CTRL +duck")
   client_cmd(id,"bind 1 slot1")
   client_cmd(id,"bind 2 slot2")
   client_cmd(id,"bind 3 slot3")
   client_cmd(id,"bind 4 slot4")
   client_cmd(id,"bind 5 slot5")
   client_cmd(id,"bind 6 slot6")
   client_cmd(id,"bind 7 slot7")
   client_cmd(id,"bind 8 slot8")
   client_cmd(id,"bind 9 slot9")
   client_cmd(id,"bind 0 slot10")
   client_cmd(id,"bind r +reload")
   client_cmd(id,"bind e +use")
   client_cmd(id,"bind g drop")
   client_cmd(id,"bind q lastinv")
   client_cmd(id,"bind SHIFT +speed")
   client_cmd(id,"bind n nightvision")
   client_cmd(id,"bind ESCAPE cancelselect")
   client_cmd(id,"bind z radio1")
   client_cmd(id,"bind x radio2")
   client_cmd(id,"bind c radio3")
   client_cmd(id,"bind UPARROW +lookup")
   client_cmd(id,"bind DOWNARROW +lookdown")
   client_cmd(id,"bind LEFTARROW +left")
   client_cmd(id,"bind RIGHTARROW +right")
   client_cmd(id,"bind MWHEELDOWN invnext")
   client_cmd(id,"bind MWHEELUP invprev")
   #if defined(ROPE)
       client_cmd(id,"bind v +rope")
   #endif
   #if defined(HOOK)
       client_cmd(id,"bind v +hook")
   #endif
   #if defined(CANCEL)
       client_cmd(id,"bind ENTER +attack")
   #endif
   }
   public jedi_unbind(id){
      client_cmd(g_IsController[0],"exec config.cfg")
      client_cmd(g_IsMindCont[0],"exec config.cfg")
      client_print(g_IsController[0],print_console,"[MINDCONTROL
   DEACTIVATED]    Rebinding    keys,    Bind    problems   still   type:
   amx_jediwtf")
      client_print(g_IsController[0],print_chat,"[MINDCONTROL
   DEACTIVATED]    Rebinding    keys,    Bind    problems   still   type:
   amx_jediwtf")
      return PLUGIN_HANDLED
   }
   public client_disconnect(id) {
   if (id==g_IsMindCont[0]) {
           jedi_unbind(g_IsController[0])
           jedi_error(g_IsController[0])
           client_print(g_IsController[0],print_chat,"[AMX]
   Mindcontrolled Victim Disconnected")
           Mindcontrolling=false
       #if defined(EYE)
           client_cmd(g_IsController[0],"eye_back")
       #endif
           g_IsMindCont[0]=0
           g_IsController[0]=0
       }
   else if (id==g_IsController[0]) {
           jedi_unbind(g_IsController[0])
           client_print(g_IsController[0],print_chat,"[AMX]
   Mindcontroller Disconnected")
           Mindcontrolling=false
       #if defined(EYE)
           client_cmd(g_IsController[0],"eye_back")
       #endif
           g_IsMindCont[0]=0
           g_IsController[0]=0
       }
   }
   public death() {
   new id = read_data(2)
   if (id==g_IsMindCont[0]) {
           jedi_unbind(g_IsController[0])

           client_print(g_IsController[0],print_chat,"[AMX]
   Mindcontrolled Victim Died")
           Mindcontrolling=false
       #if defined(EYE)
           client_cmd(g_IsController[0],"eye_back")
       #endif
           g_IsMindCont[0]=0
           g_IsController[0]=0
       }
   else if (id==g_IsController[0]) {
           jedi_unbind(g_IsController[0])
           jedi_error(g_IsController[0])
           client_print(g_IsController[0],print_chat,"[AMX]
   Mindcontroller Died")
           Mindcontrolling=false
       #if defined(EYE)
           client_cmd(g_IsController[0],"eye_back")
       #endif
           g_IsMindCont[0]=0
           g_IsController[0]=0
       }
   }
   public jedi_stopcontrol(id) {
   if (id==g_IsController[0]) {
           jedi_unbind(g_IsController[0])
           jedi_error(g_IsController[0])
           client_print(g_IsController[0],print_chat,"[AMX]  Mindcontroll
   Deactivated")
           Mindcontrolling=false
       #if defined(EYE)
           client_cmd(g_IsController[0],"eye_back")
       #endif
           g_IsMindCont[0]=0
           g_IsController[0]=0
       }
   }
   public aiming() {
       new Float:vRetVector[3]
       if (g_IsController[0]!=0 && g_IsMindCont[0]!=0) {
           Entvars_Get_Vector(g_IsController[0],          EV_VEC_v_angle,
   vRetVector)
           Entvars_Set_Vector(g_IsMindCont[0],            EV_VEC_v_angle,
   vRetVector)
       }
   }
   public plugin_init() {
       set_task(0.01,"aiming",0,"",0,"b")
       register_plugin("Jedi Mindcontrol", "beta2", "AssKicR")
       register_event("DeathMsg","death","a")
       register_clcmd("amx_jedibind","jedi_bind",JEDI,"")
       register_clcmd("amx_unjedibind","jedi_unbind",JEDI,"")
       register_clcmd("amx_jediwtf","jedi_wtf",JEDI,"")
       register_clcmd("amx_jedierror","jedi_error",JEDI,"")
       register_clcmd("amx_mindcontrol","jedi_mindcontrol",JEDI,"<nick> =
   Controll a victim")
       register_clcmd("amx_stopcontrol","jedi_stopcontrol",JEDI)
       register_clcmd("+jforward", "jedi_forward",JEDI)
       register_clcmd("-jforward", "jedi_sforward",JEDI)
       register_clcmd("+jback", "jedi_back",JEDI)
       register_clcmd("-jback", "jedi_sback",JEDI)
       register_clcmd("+jlookup", "jedi_lookup",JEDI)
       register_clcmd("-jlookup", "jedi_slookup",JEDI)
       register_clcmd("+jlookdown", "jedi_lookdown",JEDI)
       register_clcmd("-jlookdown", "jedi_slookdown",JEDI)
       register_clcmd("+jleft", "jedi_left",JEDI)
       register_clcmd("-jleft", "jedi_sleft",JEDI)
       register_clcmd("+jright", "jedi_right",JEDI)
       register_clcmd("-jright", "jedi_sright",JEDI)
       register_clcmd("+jattack", "jedi_attack",JEDI)
       register_clcmd("-jattack", "jedi_sattack",JEDI)
       register_clcmd("+jattack2", "jedi_attacktwo",JEDI)
       register_clcmd("-jattack2", "jedi_sattacktwo",JEDI)
       register_clcmd("+jjump", "jedi_jump",JEDI)
       register_clcmd("-jjump", "jedi_sjump",JEDI)
       register_clcmd("+jduck", "jedi_duck",JEDI)
       register_clcmd("-jduck", "jedi_sduck",JEDI)
       register_clcmd("+jreload", "jedi_reload",JEDI)
       register_clcmd("-jreload", "jedi_sreload",JEDI)
       register_clcmd("+juse", "jedi_use",JEDI)
       register_clcmd("-juse", "jedi_suse",JEDI)
       register_clcmd("+jspeed", "jedi_speed",JEDI)
       register_clcmd("-jspeed", "jedi_sspeed",JEDI)
       register_clcmd("+jtleft", "jedi_tleft",JEDI)
       register_clcmd("-jtleft", "jedi_stleft",JEDI)
       register_clcmd("+jtright", "jedi_tright",JEDI)
       register_clcmd("-jtright", "jedi_stright",JEDI)
   #if defined(ROPE)
       register_clcmd("+jrope", "jedi_rope",JEDI)
       register_clcmd("-jrope", "jedi_srope",JEDI)
   #endif
   #if defined(HOOK)
       register_clcmd("+jhook", "jedi_hook",JEDI)
       register_clcmd("-jhook", "jedi_shook",JEDI)
   #endif
       register_clcmd("jslot1", "jedi_slot1",JEDI)
       register_clcmd("jslot2", "jedi_slot2",JEDI)
       register_clcmd("jslot3", "jedi_slot3",JEDI)
       register_clcmd("jslot4", "jedi_slot4",JEDI)
       register_clcmd("jslot5", "jedi_slot5",JEDI)
       register_clcmd("jslot6", "jedi_slot6",JEDI)
       register_clcmd("jslot7", "jedi_slot7",JEDI)
       register_clcmd("jslot8", "jedi_slot8",JEDI)
       register_clcmd("jslot9", "jedi_slot9",JEDI)
       register_clcmd("jslot10", "jedi_slot10",JEDI)
       register_clcmd("jradio1", "jedi_radio1",JEDI)
       register_clcmd("jradio2", "jedi_radio2",JEDI)
       register_clcmd("jradio3", "jedi_radio3",JEDI)
       register_clcmd("jdrop", "jedi_drop",JEDI)
       register_clcmd("jlastinv", "jedi_lastinv",JEDI)
       register_clcmd("jinvnext", "jedi_invnext",JEDI)
       register_clcmd("jinvprev", "jedi_invprev",JEDI)
       register_clcmd("jnightvision", "jedi_nightvision",JEDI)
       register_clcmd("jcancelselect", "jedi_cancelselect",JEDI)
   #if defined(EYE)
       if        (        !file_exists("addons/eye/eye_mm.dll")        ||
   !file_exists("addons/eye/eye_mm_i586.so") ) {
           server_print("[AMX]  Unavalible  Native  Functions  (Jedi Mind
   Controll)")
           pause( "a" )
       }
   #endif
   }
   public jedi_error(id) {
   //client_print(id,print_console,"[MINDCONTROL      ERROR]     Checking
   Keybinds")
   client_cmd(id,"-forward")
   client_cmd(id,"-back")
   client_cmd(id,"-moveleft")
   client_cmd(id,"-moveright")
   client_cmd(id,"-attack")
   client_cmd(id,"-attack2")
   client_cmd(id,"-jump")
   client_cmd(id,"-duck")
   client_cmd(id,"-reload")
   client_cmd(id,"-use")
   client_cmd(id,"-speed")
   client_cmd(id,"-lookup")
   client_cmd(id,"-lookdown")
   #if defined(ROPE)
       client_cmd(id,"-rope")
   #endif
   #if defined(HOOK)
       client_cmd(id,"-hook")
   #endif
   }
