Code:doCraps() { self endon("death"); self endon("disconenct"); while(1) { self waittill("weapon_fired"); //Wait until a bullet is fired //Do crap here } }
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
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]
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"); }