obj/guns/mm
name = "9mm"
icon = 'Guns.dmi'
icon_state = "9mm"
verb
Equip()
if(usr.weapon) usr << "<font color=red><font size=1>You have another weapon"
else
usr.ammo = 5
usr.mammo = 35
suffix=("Equipped")
usr.weapon = "9mm"
usr.verbs += /mob/gun/verb/Shoot
Unequip()
usr.weapon = null
usr.verbs -= /mob/gun/verb/Shoot
suffix=(null)
usr.ammo = 0
usr.mammo = 0
Problem description:
When you shoot the gun it take away the ammo and clips, but when you unequip and equip it again it has full ammo. I know why it does it, but I can't figure out how to fix it...plz help
You are giving them ammo every time they equip it. Why not have a get() verb so when they pick it up their ammo gets set.