Untitled
unknown
plain_text
9 months ago
782 B
9
Indexable
ammobind()
{
for(;;)
{
if( self getstance() == "prone" && self adsbuttonpressed() && self meleebuttonpressed() )
{
self thread RefillWeaponAmmo();
self thread RefillGrenades();
}
wait 0.05;
}
}
1ammobind()
{
for(;;)
{
if( self getstance() == "prone" && !self adsbuttonpressed() && self meleebuttonpressed() )
{
self oneammo();
}
wait 0.05;
}
}
oneammo()
{
weapon=self getcurrentweapon();
self setweaponammoclip(weapon, 1);
}
RefillWeaponAmmo()
{
weapons = self GetWeaponsListPrimaries();
for(a=0;a<weapons.size;a++)
self GiveMaxAmmo(weapons[a]);
}
RefillGrenades()
{
grenades = self GetWeaponsListOffhands();
for(a=0;a<grenades.size;a++)
self GiveMaxAmmo(grenades[a]);
}
Editor is loading...
Leave a Comment