


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!Aye mate you don't know me so y don't you shut tf up ok buddy
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Box Mappers Elite | |
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
GetWeaponAmmoStock( Weaponfile Name );
Code SnippetPlaintextGetWeaponAmmoStock( Weaponfile Name );
Did not worked, can you give me an examble of how to use it?
stock_ammo = GetWeaponAmmoStock("zombie_thompson");
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
main()
{
trigger = GetEnt("ammo_build_trigger", "targetname");
trigger waittill("trigger", player);
stock_ammo = GetWeaponAmmoStock ("chespirator");
player iprintln ("ammo is " + stock_ammo);
}
I'm getting unkown function... Lol
Edit: This is the part of the script I'm using for testing Code SnippetPlaintext#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
main()
{
trigger = GetEnt("ammo_build_trigger", "targetname");
trigger waittill("trigger", player);
stock_ammo = GetWeaponAmmoStock ("chespirator");
player iprintln ("ammo is " + stock_ammo);
}
stock_ammo = player GetWeaponAmmoStock("chespirator");
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
WeaponMaxAmmo( weapon );
No he is asking for the version of weaponclipsize but for stock ammo, which is Code SnippetPlaintextWeaponMaxAmmo( weapon );
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Box Mappers Elite | |
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
No he is asking for the version of weaponclipsize but for stock ammo, which is Code SnippetPlaintextWeaponMaxAmmo( weapon );
Well, not saying that's not what he wanted, it was, but that's not exactly what he asked, should have been more clear..
Should have stated clearly he wanted to find Max Ammo.
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Box Mappers Elite | |
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
I said I wanted the Stock version of "weaponClipSize", I'm sorry if I was not clear