Armor entitie giving diferent ammount of armor to different darkrp classes

Hey if anyone could help me with this problem,so i want to make an armor entiety that gives different amount of armor per class,lets say a citizen max armor is 100 citizen picks the armor ent up and gets 100 armor,now a thief max armor is 150 armor the thief picks up the same armor entitie and gets 150 armor (his max armor).my current armor entitie has a set value of armor,i wanna change it so it will give every caracter its max armor.

if Player:Team() == TEAM_ARMORHOG then

“Player” being the activator of the entity placed in the “onuse” section of the entity’s code

[editline]1st September 2015[/editline]

Also wrong section

where do i add the amount of armor each team receives?

[editline]1st September 2015[/editline]

how do i add teams with custom armor values to this code

function ENT:Use(plyUse)
self:Remove()
plyUse:SetArmor(30)
end

[lua]function ENT:Use(plyUse)
self:Remove()
if plyUse:Team() == TEAM_ARMORHOG then
plyUse:SetArmor(30)
else if plyUse:Team() == TEAM_WEAKLING then
plyUse:SetArmor(10)
end
end
[/lua]

[editline]2nd September 2015[/editline]

there is currently no set in stone way to set the max armor like there is with health (feels like a bit of an oversight?)