
Posts
23
Respect
Forum Rank
Legless Crawler
Primary Group
Member
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!level.give_ammo = 0;
ammo_trigs = getentarray("give_ammo","targetname");
array_thread(ammo_trigs,::give_ammo);
give_ammo()
{
while(1)
{
who = undefined;
cost = 1500;
string = "Press &&1 to buy ammo [Cost: " + cost + "]";
self sethintstring( string );
self SetCursorHint( "HINT_NOICON" );
self UseTriggerRequireLookAt();
self waittill( "trigger", who );
weapon = who GetCurrentWeapon();
ammocount = who getammocount(weapon);
clipcount = who getweaponammoclip(weapon);
maxammo = weaponmaxammo(weapon);
// UNCOMMENT TO MAKE RAY GUN & WUNDERWAFFE AMMO UNBUYABLE
//if( weapon == "tesla_gun" || weapon == "ray_gun" )
//{
// who iprintln( "You cannot buy ammo for this weapon" );
// level.give_ammo = 0;
//}
// UNCOMMENT TO MAKE RAY GUN & WUNDERWAFFE AMMO UNBUYABLE
if( maxammo <= ammocount - clipcount )
{
continue;
}
if ( weapon != "fraggrenade" && weapon!= "stielhandgranate" && weapon != "molotov" && weapon != "mine_bouncing_betty" && weapon != "mortar_round" && weapon != "satchel_charge_new")
{
if( who.score > cost )
{
level.give_ammo = 1;
}
else
{
level.give_ammo = 0;
}
}
if( level.give_ammo > 0 )
{
who givemaxammo( who GetCurrentWeapon() );
who maps\_zombiemode_score::minus_to_player_score( cost );
who playsound( "cha_ching" );
}
else
{
who playsound( "no_cha_ching" );
}
wait(0.05);
}
}


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. |
if( maxammo <= ammocount - clipcount )
{
continue;
}
ammocount = who getammocount(weapon);
clipcount = who getweaponammoclip(weapon);
maxammo = weaponmaxammo(weapon);