25.01.2013, 10:08
Hi there. I was just wondering how I could make a firearm disable itself immediately after it reaches 10,000 ammo.
(Disabling as in, unable to shoot it)
(Disabling as in, unable to shoot it)
public OnPlayerUpdate(playerid)
{
if(GetPlayerAmmo(playerid)>10000) SetPlayerAmmo(playerid, GetPlayerWeapon(playerid),0);
return 1;
}