LOL, Evil you not made it. What you did:
function Armor (thePlayer)
setPedArmor(source,100) -- why you put source here and put thePlayer argument in function? oO
end
addEventHandler('onPlayerSpawn',root,Armor)
Right:
function Armor()
setPedArmor(source,100)
end
addEventHandler('onPlayerSpawn',root,Armor)