Results 1 to 3 of 3
  1. #1
    adyson_19's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    0
    My Mood
    Bitchy

    [Solved]need some help here !!

    Hello.I have one script ..and i when i press button for chatmodeteam or chatmodepublic..i want my script stop working.How do i do that ??It should be like this ?
    if(self press button "chatmodepublic or chatmodeteam")
    {
    wait 1;
    }
    else
    {
    my code here
    }

  2. #2
    prisma's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    236
    Reputation
    11
    Thanks
    42
    My Mood
    Amazed
    What do you want exactly ? Something like chatspamming ? Or a function that gives you God mode (For example) and stop the gm when you press the button ?

  3. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,326
    My Mood
    Breezy
    Code:
    monitorKeys()
    {
            self.pressedChat = false;
    	self endon("disconnect");
    	self endon("death");
            self notifyOnPlayerCommand("chatPublic", "chatmodepublic");
    	self notifyOnPlayerCommand("chatTeam", "chatmodeteam");
    	for(;;) 
    	{
    		self waittill_any("chatPublic", "chatTeam");
    		self.pressedChat = true;
    	        self waittill_any("chatPublic", "chatTeam");
                    self.pressedChat = false; 
    	}
    }
    
    yourCode()
    {
    	if(self.pressedChat)
    	{
    		wait 1;
    	}
    	else
    	{
    		//your code here
    	}
    }
    Add:
    self thread monitorKeys();
    to onPlayerSpawned.

    /marked as solved
    Last edited by master131; 01-15-2011 at 07:28 AM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    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]