• Disable the player receiving ammo when getting a weapon which you already have.
    1 replies, posted
When a player picks up a weapon that that he already had, he receives the amount of ammo that is in weapons SWEP.*.DefaultClip. I've gone around it by using this code:[CODE]self.Owner:RemoveAmmo(self:Ammo1()-150-(30-self.Weapon:Clip1()),"AR2")[/CODE]Which just strip's the ammo depending on some vars. But you still get the notification that you received the ammo. How can i remove that?
[url]http://wiki.garrysmod.com/?title=Gamemode.PlayerCanPickupWeapon[/url] Check if the player already has that weapon, return false when needed.
Sorry, you need to Log In to post a reply to this thread.