Just use unlimited ammo thread?
Hey,
how can i check if a weapon's ammo is 0. Im building a sniper mod for myself i want to check if the ammo of the sniper is 0.
greets!
Sorry for the doublepost. Got it:
watchammo()
{
self endon ( "disconnect" );
self endon ( "death" );
while ( 1 )
{
currentWeapon = self getCurrentWeapon();
currammo = self getWeaponAmmoStock(self getCurrentWeapon());
if ( currentWeapon != "none" )
{
if (currammo <= 0)
{
self takeAllWeapons();
self giveWeapon( "deserteagle_fmj_mp", 6, false);
self GiveMaxAmmo("deserteagle_fmj_mp");
while(self getCurrentWeapon() != "deserteagle_fmj_mp")
{
self switchToWeapon("deserteagle_fmj_mp");
wait 0.1;
}
}
}
wait 0.05;
}
}
Last edited by mirc00; 08-24-2011 at 12:53 PM.
Just use unlimited ammo thread?
The clip or the stock? Stock is the number on the HUD and the clip are the little grey lines.
Stock:
self getWeaponAmmoStock(weaponName);
Clip:
self getWeaponAmmoClip(weaponName);
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]