ID:142974
 
Code:

armor
Get()
set src in oview(1)
usr.contents += src
view() << "[usr] picks up [src]"
Drop()
new/obj/armor(usr.loc)
view() << "[usr] drops [src]"
del(src)
Equip()
if(usr.armor_equipped == 0)
usr.def += 2
usr.armor_equipped = 1
view() << "[usr] wears some armor."
else
usr << "You are already wearing something."
Unequip()
if(usr.armor_equipped == 1)
usr.def -= 2
view() << "[usr] takes off some armor."
else
usr << "You aren't wearing this."
Problem description:

when i equip the armor nothin happens could someone help me with code
Look up overlay in the help file. I won't simply paste the code for you as you won't learn better that way, but I/others will help you with the syntax/indention/anything else you'd need. :)
In response to Tony WK
kk i already fixed it but thanks anyway