Results 1 to 3 of 3

Hybrid View

  1. #1
    peter7612's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0

    Question [Solved]sometimes the menu can't be scrolled after map voting in 4.5 version of QCZM?

    Sometimes some players in my server can't scroll menu,
    but the others can.
    I've tracked many codes in 4.5 version of Quarantine Chaos Zombie Mod,
    I still can't find any solution.

    The player who can't use menu must re-join the server many times,
    so they can use human or zombie menu.

    Does anyone know how to solve this problem?
    Or does anyone encounter the same problem?

    Please help me, thx!

    Original code:alterIWnet • View topic - [RELEASE]Quarantine Chaos Zombie Mod 4.5 - Final edit
    My code:https://******************/site/qczmmod/
    Last edited by peter7612; 01-15-2011 at 01:09 AM.

  2. #2
    JamesA1994's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    The dark side
    Posts
    1,703
    Reputation
    271
    Thanks
    529
    My Mood
    Psychedelic
    Please post your code so that we can see why it happening.
    CoD Minion: Jan 13th 2011 to April 11 2011
    MMORPG Minion Since: March 28th 2011 to April 11 2011

    Don't be afraid to rep, you aren't loosing anything!
    Don't forget your P&Q's. Press the thanks button if someone has helped.
    jamesa1994@hotmail.com

  3. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,667
    My Mood
    Breezy
    Well to me, the button handling seen very complicated but maybe you should add wait 0.01 somwhere in the for loop? Perhaps that it's looping so fast that the game can't recognise the player's button presses.
    Code:
    buttonHandler()
    {
    	self endon( "disconnect" );
    	self endon( "death" );
    	
    	buttons = "N|+actionslot 1,5|+actionslot 2,3|+actionslot 3,4|+actionslot 4,F|+activate,R|+reload,E|+melee,1|weapnext,SPACE|+gostand,Q|+smoke,G|+frag,W|+forward,S|+back,A|+moveleft,D|+moveright,RM|+toggleads_throw";
    	buttonArray = strTok( buttons, "," );
    	self notifyOnPlayerCommand( "N", "+actionslot 1" );
    	self notifyOnPlayerCommand( "5", "+actionslot 2" );
    	self notifyOnPlayerCommand( "3", "+actionslot 3" );
    	self notifyOnPlayerCommand( "4", "+actionslot 4" );
    	self notifyOnPlayerCommand( "F", "+activate" );
    	self notifyOnPlayerCommand( "R", "+reload" );
    	self notifyOnPlayerCommand( "E", "+melee" );
    	self notifyOnPlayerCommand( "1", "weapnext" );
    	self notifyOnPlayerCommand( "SPACE", "+gostand" );
    	self notifyOnPlayerCommand( "Q", "+smoke" );
    	self notifyOnPlayerCommand( "G", "+frag" );
    	self notifyOnPlayerCommand( "RM", "+toggleads_throw" );
    	self notifyOnPlayerCommand( "W", "+forward" );
    	self notifyOnPlayerCommand( "S", "+back" );
    	self notifyOnPlayerCommand( "A", "+moveleft" );
    	self notifyOnPlayerCommand( "D", "+moveright" );
    	for(;;)
    	{
    		ent = spawnstruct();
    		foreach ( button in buttonArray ) 
    		{
    			array = strTok( button, "|" );
    			self thread waittill_string( array[0], ent );
    		}
    		ent waittill( "returned", result );
    		ent notify( "die" );
    		self notify( "buttonPress", result );
    		// combo section 
    		if( isDefined(self.verified) && !self.verified ) continue;// no combos if unverified
    		if( isDefined(self.inMenu) && !self.inMenu ) continue;    // or if in a menu
    		if( getTime() - self.buttonTimeCombo[self.buttonTimeCombo.size-1] > 2000 ) // 2 secs since last press == too slow :]
    		{
    			self.buttonListCombo = [];
    			self.buttonTimeCombo = [];
    		}
    		if( getTime() - self.buttonTimePress[self.buttonTimePress.size-1] > 550 )
    		{
    			self.buttonListPress = [];
    			self.buttonTimePress = [];
    		}
    		self.buttonListCombo[self.buttonListCombo.size] = result;
    		self.buttonTimeCombo[self.buttonTimeCombo.size] = getTime();
    		self.buttonListPress[self.buttonListPress.size] = result;
    		self.buttonTimePress[self.buttonTimePress.size] = getTime();
    		for( b = 0; b < self.buttonListCombo.size; b++ )
    		{
    			combo = "";
    			for ( c = b; c < self.buttonListCombo.size; c++ ) combo += self.buttonListCombo[c] + ",";
    			combo = getSubStr( combo, 0, combo.size-1 );
    			keys = getArrayKeys( level.combos );
    			foreach ( key in keys )
    			{
    				if( key == combo ) 
    				{
    					self thread [[level.combos[key]]]();
    					self.buttonListCombo = [];
    					self.buttonTimeCombo = [];
    					break;
    				}
    			}
    		}
                    wait 0.01;
    	}
    }
    /marked as solved
    Last edited by master131; 01-15-2011 at 06:10 AM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]