Results 1 to 3 of 3
  1. #1
    masterfun's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0
    My Mood
    Happy

    While weapon_fired

    Hello guys,

    How can I make a function, that reports if the user is shooting (like while, weapon_fired)?

    So as soon, he released the fire button the loop stops and something else happens?

    Hopefully you can help me with this,

    Masterfun

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,668
    My Mood
    Breezy
    Code:
    doCraps()
    {
        self endon("death");
        self endon("disconenct");
        while(1)
        {
            self waittill("weapon_fired"); //Wait until a bullet is fired
            //Do crap here
        }
    }
    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]

  3. #3
    masterfun's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0
    My Mood
    Happy
    So like this it will work:
    Code:
    checkFire()
    {
        self endon("death");
        self endon("disconenct");
        while(1)
        {
            self waittill("weapon_fired");
            self iPrintLnBold("U are shooting");
            wait 0.05;
        }
        self iPrintLnBold("U stopped shooting");
    }