
Posts
21
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
main()
{
thread ammo();
}
ammo()
{
flag_wait( "all_players_connected" );
wait 1;
players = get_players();
j = 0
currentweapon = players[j] getCurrentWeapon();
bullets_left = players[j] GetFractionMaxAmmo( currentweapon );
for( i = 0; i < players.size; i++ )
wait .5;
if( currentweapon == "bo2_zm_colt" && bullets_left < 0.1 )
players[i] playsound("aib");
wait .5;
}


![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
main()
{
thread ammo_init();
}
ammo_init()
{
flag_wait( "all_players_connected" );
wait 1;
players = get_players();
array_thread( players,::ammo_watch );
}
ammo_watch()
{
while(1)
{
currentweapon = self getCurrentWeapon();
while( self GetFractionMaxAmmo( currentweapon ) >= 0.1 && currentweapon == "bo2_zm_colt" )
[
wait 0.2;
}
if( currentweapon == "bo2_zm_colt" && self GetFractionMaxAmmo( currentweapon ) < 0.1 )
{
self playsound("aib");
}
wait 0.1;
// wait till the player has ammo again, or lost the weapon and restart the loop
while( self hasweapon("bo2_zm_colt") && self GetFractionMaxAmmo( "bo2_zm_colt" ) < 0.1 )
{
wait 0.2;
}
}
}



paypal.me/F3ARxReaper666![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
while( self GetFractionMaxAmmo( currentweapon ) >= 0.1 && currentweapon == "bo2_zm_colt" )
[
wait 0.2;
}
while( self GetFractionMaxAmmo( currentweapon ) >= 0.1 && currentweapon == "bo2_zm_colt" )
{
wait 0.2;
}