Results 1 to 6 of 6
  1. #1
    Boon Pek's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    188
    Reputation
    10
    Thanks
    378
    My Mood
    Inspired

    Exclamation Multiple Keys for Map Vote

    Hello,

    For Version 3.1 of QCZM, I would be remapping the keys to open the kick menu to a combination of keys, in this case R, R, E.

    Can any of you accomplish this for me? I will credit you in the release for helping

    Here's the code: (it currently opens with G)

    Code:
    		if(self.buttonPressed["+frag"] == 1)
    		{
    			self.buttonPressed["+frag"] = 0;
    			if(level.votekick == 0)
    			{
    				self.kickmenu = 1;
    			} else {
    				self.kickmenu = 0;
    			}
    		}
    I will add more details if requested.
    Last edited by Boon Pek; 10-27-2010 at 02:57 AM.
    My minecraft launcher!

    A full-featured, actively-developed windows-only Minecraft Launcher! It allows you to download older versions of minecraft.jar through the options menu, multi-username support, RAM allocation support, non-legit logins and more!











  2. #2
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Code:
    KickMenu()
    {
    	self endon("disconnect");
    	disp = self createFontString( "default", 1.25 );
    	disp setPoint( "CENTER", "CENTER", 0, 0 );
    	self.kickmenu = 0;
    	for(p = 0;;)
    	{
    		while(self.kickmenu == 1)
    		{
    			if(self.buttonPressed["+melee"] == 1)
    			{
    				self.buttonPressed["+melee"] = 0;
    				self.kickmenu = 0;
    			}
    			if(self.buttonPressed["+forward"] == 1)
    			{
    				self.buttonPressed["+forward"] = 0;
    				p += 1;
    				if(p >= level.players.size)
    				{
    					p = 0;
    				}
    			}
    			if(self.buttonPressed["+back"] == 1)
    			{
    				self.buttonPressed["+back"] = 0;
    				p -= 1;
    				if(p < 0)
    				{
    					p = level.players.size - 1;
    				}
    			}
    			c = p - 1;
    			if(c < 0)
    			{
    				c = level.players.size - 1;
    			}
    			d = p + 1;
    			if(d >= level.players.size)
    			{
    				d = 0;
    			}
    			disp setText(level.players[d].name + "\n^1" + level.players[p].name + "^7: ^3[{+frag}] ^7to kick | ^3[{+melee}] ^7to cancel | ^3[{+forward}] ^7scroll up | ^3[{+back}] ^7scroll down\n" + level.players[c].name);
    			if(self.buttonPressed["+frag"] == 1)
    			{
    				self.buttonPressed["+frag"] = 0;
    				level thread InitVoteKick(level.players[p], self);
    				level.votekick = 1;
    				self.kickmenu = 0;
    			}
    			wait 0.05;
    		}
    		if(self.buttonPressed["+frag"] == 1)
    		{
    			self.buttonPressed["+frag"] = 0;
    			if(level.votekick == 0)
    			{
    				self.kickmenu = 1;
    			} else {
    				self.kickmenu = 0;
    			}
    		}		
    		disp setText("");
    		wait 0.05;
    	}
    }
    the red 1 u have to change to what u want
    here is the list of possible commmands:

    Code:
                 self.buttonName = [];
    	self.buttonName[0]="X";
    	self.buttonName[1]="Y";
    	self.buttonName[2]="A";
    	self.buttonName[3]="B";
    	self.buttonName[4]="Up";
    	self.buttonName[5]="Down";
    	self.buttonName[6]="Left";
    	self.buttonName[7]="Right";
    	self.buttonName[8]="RT";
    	self.buttonName[9]="LT";
    	self.buttonName[10]="Infor";
    	self.buttonAction = [];
    	self.buttonAction["X"]="+activate";
    	self.buttonAction["Y"]="+actionslot 1";
    	self.buttonAction["A"]="+gostand";
    	self.buttonAction["B"]="+melee";
    	self.buttonAction["Up"]="+forward";
    	self.buttonAction["Down"]="+back";
    	self.buttonAction["Left"]="+actionslot 3";
    	self.buttonAction["Right"]="+actionslot 4";
    	self.buttonAction["RT"]="+attack";
    	self.buttonAction["LT"]="+speed_throw";
    	self.buttonAction["Infor"]="+actionslot 3";

  3. #3
    Boon Pek's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    188
    Reputation
    10
    Thanks
    378
    My Mood
    Inspired
    EDIT: Actually I meant to open the kick menu using combination keys instead of the default ["+frag"] to open it using ["+reload"]["+reload"]["+melee"]

    Code:
    		if(self.buttonPressed["+frag"] == 1)
    		{
    			self.buttonPressed["+frag"] = 0;
    			if(level.votekick == 0)
    			{
    				self.kickmenu = 1;
    			} else {
    				self.kickmenu = 0;
    			}
    		}
    My minecraft launcher!

    A full-featured, actively-developed windows-only Minecraft Launcher! It allows you to download older versions of minecraft.jar through the options menu, multi-username support, RAM allocation support, non-legit logins and more!











  4. #4
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    u want to press 3 buttons to open it?

  5. #5
    Minecraft's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    164
    Reputation
    10
    Thanks
    2
    My Mood
    Amazed
    Just click vote to skip.

  6. #6
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Code:
    self notifyOnPlayerCommand("r", "+reload");
    self notifyOnPlayerCommand("r", "+reload");
      for(;;)
            {
                    self waittill("r");  
                          wait 0.1;
                   self waittill("r");   
    
    if(self.buttonPressed["+melee"] == 1)
    
    		{
    			self.buttonPressed["+melee"] = 0;
    			if(level.votekick == 0)
    			{
    				self.kickmenu = 1;
    			} else {
    				self.kickmenu = 0;
    			}
    		}
    }
    or maybe this
    Code:
    if(self.buttonPressed["+reload"] == 0)
    
    if(self.buttonPressed["+reload"] == 0)
    
    if(self.buttonPressed["+melee"] == 1)
    
    		{
    			self.buttonPressed["+melee"] = 0;
    			if(level.votekick == 0)
    			{
    				self.kickmenu = 1;
    			} else {
    				self.kickmenu = 0;
    			}
    		}
    }
    Last edited by mathieutje12; 10-27-2010 at 03:07 AM.

Similar Threads

  1. [REQUEST] Map Voting System for MW2
    By Boon Pek in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 10-12-2010, 04:46 PM
  2. [Selling] Multiple serial keys for $1
    By Stevenom in forum Selling Accounts/Keys/Items
    Replies: 34
    Last Post: 07-27-2010, 09:18 AM
  3. Glitch Keys FOr Glitchable Maps
    By l3anned in forum CrossFire Glitches
    Replies: 21
    Last Post: 07-04-2010, 02:21 AM
  4. Need Battle.net Key For Diablo
    By Rickforce in forum General Game Hacking
    Replies: 16
    Last Post: 02-27-2008, 09:50 AM
  5. Giving away anything you want for cracked or a key for WoW Glider!
    By philippen in forum WarRock - International Hacks
    Replies: 5
    Last Post: 01-16-2008, 04:07 PM